updating error using oledbcommandbuilder
-
hello!!! could someone tell me what's the problem with my code.. i got this code from www.homeandlearn.co.uk.. I got some error when I edited the records on drow2[1] it says<code>syntax error in update statement</code> <code> //for update System.Data.Oledb.OledbCommandBuilder cb; cb = new System.Data.Oledb.OledbCommandBuilder(da); System.Data.DataRow drow2 = ds1.Tables["login"].Rows[inc]; drow2[0] =textbox1.Text; drow2[1] =textbox2.Text; d.Update(ds1,"login"); </code> thanks; Ginji Amano
-
hello!!! could someone tell me what's the problem with my code.. i got this code from www.homeandlearn.co.uk.. I got some error when I edited the records on drow2[1] it says<code>syntax error in update statement</code> <code> //for update System.Data.Oledb.OledbCommandBuilder cb; cb = new System.Data.Oledb.OledbCommandBuilder(da); System.Data.DataRow drow2 = ds1.Tables["login"].Rows[inc]; drow2[0] =textbox1.Text; drow2[1] =textbox2.Text; d.Update(ds1,"login"); </code> thanks; Ginji Amano
I don't see an update statement.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
I don't see an update statement.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )