
ADO .NET won't update table
As a demo, I've created a OleDbConnection, OledbDataAdapter, and a dataset
named dsEmployees that selects 3 fields from an Access database. The data
is displayed in textboxes on a form. I can load the dataset and navigate
through all of the records. I have the following code in an Update button
event and it doesn't update the access database table:
Try
OleDataAdapter1.Update(dsEmployees)
msgbox "Table Updated"
Catch e as Exception
Msgbox(e.ToString)
End try
The message nox displays the "Table Updated" message, but when I open Access
the change to the record is not made.