Hi,
Did you try calling dataSet.AcceptChanges() method and then dataAdapter.Update().
Vaz
Main Topics
Browse All TopicsI am using C# .Net together with Visual Studio Express. I am using a OleDataAdapter to read and write from Access. I am able to read Data from a DataRow in the DataSet, but I can not update it and write the changes back to Access.
I am using the following code for reading:
myRow = myDataSet.Tables[0].Rows[i
txtFirstDeliveryNote.Text = myRow[6].ToString();
I am trying to use the following code for updating the DataSet:
myDataSet.Tables[0].Rows[i
MessageBox.Show(myDataSet.
myDataAdapter.Update(myDat
Erros do not occur, but the when I load the Data again it has not changed.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm not sure that RowState is affected when you modify the ItemArray.
Instead of:
myDataSet.Tables[0].Rows[i
try:
myDataSet.Tables[0].Rows[i
I believe that the table will now be updated.
IF NOT ONE OTHER THING
myDataAdapter.Update(myDat
You reference the table being updated as myDataSet.Tables[0] but then call update on "TableName"
try either:
myDataAdapter.Update(myDat
or
myDataAdapter.Update(myDat
Business Accounts
Answer for Membership
by: steelheart38Posted on 2007-06-26 at 08:59:58ID: 19365108
MessageBox.Show(myDataSet. Tables[0]. Rows[local index].Ite mArray[0]. ToString() ) returns the correct value? Just had to ask.
Your code looks ok. Have you checked the Access DB data if the entry was updated in the DB? Also, it might help to ensure that there is a primary key for that tableName. If the entry in the DB is updated then there likely is some issue in loading the data again.