View Single Post
 
Old 08-11-2015, 05:58 PM
PlausiblyDamp's Avatar
PlausiblyDamp PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

Been a while since I have done anything with DataSets but IIRC the lines
Code:
ds.AcceptChanges()
da.Update(ds, "Trackerds")
Need to be swapped i.e. change them to
Code:
da.Update(ds, "Trackerds")
ds.AcceptChanges()
Calling .AcceptChanges on a DataSet marks all modified rows as being Unchanged, this means when you call .Update on the DataAdapter it doesn't see any changes to propagate to the database.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote