Click here to Skip to main content
14,602,962 members
   

C#

 
AnswerRe: Invisible Form Labels Pin
DaveyM6930-Jul-08 9:35
professionalDaveyM6930-Jul-08 9:35 
GeneralRe: Invisible Form Labels Pin
#realJSOP30-Jul-08 10:43
mva#realJSOP30-Jul-08 10:43 
GeneralRe: Invisible Form Labels Pin
DaveyM6930-Jul-08 11:45
professionalDaveyM6930-Jul-08 11:45 
GeneralRe: Invisible Form Labels Pin
#realJSOP30-Jul-08 12:05
mva#realJSOP30-Jul-08 12:05 
GeneralRe: Invisible Form Labels Pin
#realJSOP31-Jul-08 3:37
mva#realJSOP31-Jul-08 3:37 
QuestionHow to Update MDB file? Pin
Admin88730-Jul-08 5:20
MemberAdmin88730-Jul-08 5:20 
AnswerRe: How to Update MDB file? Pin
Yusuf30-Jul-08 5:32
MemberYusuf30-Jul-08 5:32 
AnswerRe: How to Update MDB file? Pin
ElSpinos30-Jul-08 5:33
MemberElSpinos30-Jul-08 5:33 
You will need to define the InsertCommand property of the DataAdapter like so:

// Connection & DataAdapter initialization code should go here
// ...

OleDbCommand insertCommand = connection.CreateCommand();
insertCommand.CommandText = "Insert Into Table(Col1, Col2, Col3) Values (?, ?, ?)";
dataAdapter.InsertCommand = insertCommand;

// ...


You may also want to check out the UpdateCommand and DeleteCommand properties which will allow your adapter to update and delete records which is what it seems you are also trying to do in your code snippet.

/F - .NET Developer

QuestionSlides View Control Pin
breandan30-Jul-08 4:40
Memberbreandan30-Jul-08 4:40 
AnswerRe: Slides View Control Pin
Simon P Stevens30-Jul-08 5:37
MemberSimon P Stevens30-Jul-08 5:37 
QuestionHow can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 3:55
professionalAbhijit Jana30-Jul-08 3:55 
AnswerRe: How can i save event logs using C# ? [modified] Pin
ElSpinos30-Jul-08 4:15
MemberElSpinos30-Jul-08 4:15 
GeneralRe: How can i save event logs using C# ? Pin
Tuwing.Sabado30-Jul-08 4:35
MemberTuwing.Sabado30-Jul-08 4:35 
GeneralRe: How can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 5:24
professionalAbhijit Jana30-Jul-08 5:24 
GeneralRe: How can i save event logs using C# ? Pin
ElSpinos30-Jul-08 5:45
MemberElSpinos30-Jul-08 5:45 
GeneralRe: How can i save event logs using C# ? Pin
Abhijit Jana30-Jul-08 6:56
professionalAbhijit Jana30-Jul-08 6:56 
Questionsetting printer options Pin
cmarmr30-Jul-08 2:48
Membercmarmr30-Jul-08 2:48 
AnswerRe: setting printer options Pin
DaveyM6930-Jul-08 3:14
professionalDaveyM6930-Jul-08 3:14 
QuestionAfter form load Auto close window Pin
Member 387988130-Jul-08 2:38
MemberMember 387988130-Jul-08 2:38 
AnswerRe: After form load Auto close window Pin
DaveyM6930-Jul-08 2:55
professionalDaveyM6930-Jul-08 2:55 
AnswerRe: After form load Auto close window Pin
PIEBALDconsult30-Jul-08 3:47
professionalPIEBALDconsult30-Jul-08 3:47 
QuestionHide My Window Form Pin
Member 387988130-Jul-08 1:54
MemberMember 387988130-Jul-08 1:54 
AnswerRe: Hide My Window Form Pin
DaveyM6930-Jul-08 2:54
professionalDaveyM6930-Jul-08 2:54 
AnswerRe: Hide My Window Form Pin
Ajay.k_Singh30-Jul-08 3:03
MemberAjay.k_Singh30-Jul-08 3:03 
AnswerRe: Hide My Window Form Pin
Thomas Stockwell30-Jul-08 10:26
professionalThomas Stockwell30-Jul-08 10:26 

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.