T
Trey
I am having some real troubles with this. I have a database that is using a
oleDbAdapter to load a DataSet that shows up on a grid. I modify the text
in the grid then run the following code.
bool b = dataSet11.HasChanges();
dataSet11.AcceptChanges();
int x = dAdapt.Update(dataSet11);
Single stepping through the code I find that b is true so the dataSet has
changed. But x gets returned as a Zero saying that no rows have been
modified.
My update statement for the Adapter is:
UPDATE CallLog SET Called = ?, Company = ?, Name = ?, Notes = ?, Phone = ?,
theDate = ?, theTime = ? WHERE (theIndex = ?)
What am I doing wrong?
I appreciate your help.
Trey
oleDbAdapter to load a DataSet that shows up on a grid. I modify the text
in the grid then run the following code.
bool b = dataSet11.HasChanges();
dataSet11.AcceptChanges();
int x = dAdapt.Update(dataSet11);
Single stepping through the code I find that b is true so the dataSet has
changed. But x gets returned as a Zero saying that no rows have been
modified.
My update statement for the Adapter is:
UPDATE CallLog SET Called = ?, Company = ?, Name = ?, Notes = ?, Phone = ?,
theDate = ?, theTime = ? WHERE (theIndex = ?)
What am I doing wrong?
I appreciate your help.
Trey