Im building a simple database. On a form I created a Text box and connected (using DataBindings) to Access 2000 Database.
I have successfully created OleDbConnection, OledDbDataAdapter and DataSet. When I scroll through the records, proper data is displayed on all controlls.
How do I update the database when I modify data in the text?
I used the following statement out of the book:
OledDbDataAdapter.Update(DataSet)
When I check my database, the values didnt still didnt change. I made sure that ContinueUpdateOnError parameter is set to True.
I also tried this:
Try
Me.DA_TravelJ.Update(Me.DS_TravelJ1, "tblMain")
Me.DS_TravelJ1.AcceptChanges()
Catch
Dim err As Exception
MsgBox(err)
End Try
I dont get any exception errors either. This table does have a relation to other table, but that seems to work fine.
Any suggestions?
Thanks
I have successfully created OleDbConnection, OledDbDataAdapter and DataSet. When I scroll through the records, proper data is displayed on all controlls.
How do I update the database when I modify data in the text?
I used the following statement out of the book:
OledDbDataAdapter.Update(DataSet)
When I check my database, the values didnt still didnt change. I made sure that ContinueUpdateOnError parameter is set to True.
I also tried this:
Try
Me.DA_TravelJ.Update(Me.DS_TravelJ1, "tblMain")
Me.DS_TravelJ1.AcceptChanges()
Catch
Dim err As Exception
MsgBox(err)
End Try
I dont get any exception errors either. This table does have a relation to other table, but that seems to work fine.
Any suggestions?
Thanks