Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble in Adding Datarow
Message
De
21/12/2005 19:50:07
 
 
À
21/12/2005 19:40:38
Glenwell Andal
Pdc Software Philippines
Quezon, Philippines
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Jet/Access Engine
Divers
Thread ID:
01079770
Message ID:
01080075
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform