Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble in Adding Datarow
Message
From
21/12/2005 19:50:07
 
 
To
21/12/2005 19:40:38
Glenwell Andal
Pdc Software Philippines
Quezon, Philippines
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
01079770
Message ID:
01080075
Views:
17
Well, first of all, you can't do an .AcceptChanges() before you attempt to Update ... the .AcceptChanges() marks the rows as having no changes and so the .Update() thinks nothing needs updating. There may be other issues (not having seen your code, I don't know) ... but take care of this first and see if that helps.

~~Bonnie



>Yes, I used that and is work. But i have a new problem. When i update the dataset using that code below it didnt work...
>
>
>da = new OleDbDataAdapter
>
>dtEmployee.AcceptChanges
>da.Update(dtEmployee)
>
>
>My intention here is to commit the new record in my database. No syntax error happened but when I check my database, new record is not added. Is their something I need to do in updating dataset?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform