Click here to Skip to main content
15,920,508 members
Home / Discussions / Database
   

Database

 
GeneralRe: AddNew(); Pin
Anonymous13-Oct-04 22:49
Anonymous13-Oct-04 22:49 
GeneralConnection Object Pin
EdbertP11-Oct-04 20:29
EdbertP11-Oct-04 20:29 
GeneralRe: Connection Object Pin
Colin Angus Mackay11-Oct-04 22:55
Colin Angus Mackay11-Oct-04 22:55 
GeneralRe: Connection Object Pin
EdbertP12-Oct-04 14:20
EdbertP12-Oct-04 14:20 
GeneralRe: Connection Object Pin
Colin Angus Mackay12-Oct-04 21:16
Colin Angus Mackay12-Oct-04 21:16 
GeneralRe: Connection Object Pin
EdbertP13-Oct-04 17:17
EdbertP13-Oct-04 17:17 
GeneralUnicode to Big-5 conversion (Any ideas?) Pin
Its due when11-Oct-04 20:06
Its due when11-Oct-04 20:06 
Generalexcel and oledbexception Pin
its_skar11-Oct-04 15:34
its_skar11-Oct-04 15:34 
hi

I have the following code:

OleDbDataAdapter oleCmd = new OleDbDataAdapter("SELECT [Customer ID], [Customer #], [Company], [Location] FROM [Sheet1$]", oleConn);

DataSet oDS = new DataSet();
oleCmd.Fill(oDS);
The connection string is perfect. no problem with that.

It ran very good until I got this file from the client. though it has the same format and same alignment and same sheet number and etc., myprogram would fail at the FILL dataset line number.
the exception is :
System.oledb.OledbException: No value given for one or more required parameters.

seems to be a bug or something. I really cannot tell.
its erroring out in the thing that in the file they sent the first row is empty.

But, when i delete the first row and execute, program runs fine. again when i do an insert blank row at first, it still runs.
so why it didnt run at first time, and it ran ok second time.?
any format issues with excel ?
( i copied this stuff into a new excel sheet and ran prgm on that and it ran fine on that file)

I just cannot determine what is causing the error and how to resolve it.

can anyone help ?

-messageman
QuestionUnforseen problem? Pin
Jerry Hammond11-Oct-04 5:50
Jerry Hammond11-Oct-04 5:50 
AnswerRe: Unforseen problem? Pin
Colin Angus Mackay11-Oct-04 6:05
Colin Angus Mackay11-Oct-04 6:05 
GeneralRe: Unforseen problem? Pin
Mike Dimmick11-Oct-04 9:59
Mike Dimmick11-Oct-04 9:59 
GeneralRe: Unforseen problem? Pin
Colin Angus Mackay11-Oct-04 10:08
Colin Angus Mackay11-Oct-04 10:08 
GeneralRe: Unforseen problem? Pin
Mike Dimmick11-Oct-04 10:31
Mike Dimmick11-Oct-04 10:31 
QuestionAre distributed transactions in MS Access possible ? Pin
Daniel Kailer11-Oct-04 4:13
Daniel Kailer11-Oct-04 4:13 
AnswerRe: Are distributed transactions in MS Access possible ? Pin
Vasudevan Deepak Kumar13-Oct-04 2:36
Vasudevan Deepak Kumar13-Oct-04 2:36 
Generalmysql with asp.net Pin
hazzem elrefai11-Oct-04 1:48
hazzem elrefai11-Oct-04 1:48 
GeneralRe: mysql with asp.net Pin
Colin Angus Mackay11-Oct-04 2:33
Colin Angus Mackay11-Oct-04 2:33 
GeneralRe: mysql with asp.net Pin
Gavin Jeffrey11-Oct-04 3:27
Gavin Jeffrey11-Oct-04 3:27 
GeneralRe: mysql with asp.net Pin
Vasudevan Deepak Kumar13-Oct-04 2:35
Vasudevan Deepak Kumar13-Oct-04 2:35 
GeneralSQL query required Pin
Imtiaz Murtaza10-Oct-04 1:54
Imtiaz Murtaza10-Oct-04 1:54 
GeneralRe: SQL query required Pin
suzyb11-Oct-04 1:04
suzyb11-Oct-04 1:04 
GeneralRe: SQL query required Pin
Michael Potter11-Oct-04 3:18
Michael Potter11-Oct-04 3:18 
GeneralRe: SQL query required Pin
mysorian14-Oct-04 18:38
professionalmysorian14-Oct-04 18:38 
GeneralMemo field not returning more than 256 characters. Pin
brdavid9-Oct-04 8:26
brdavid9-Oct-04 8:26 
GeneralRe: Memo field not returning more than 256 characters. Pin
Nemanja Trifunovic9-Oct-04 8:36
Nemanja Trifunovic9-Oct-04 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.