Hello, I can't update my database. Why??? I found code snippets in thius forum, mine is the same. Here's the code:The error is: "Update was not able to find TableMapping['Table'] or DataTable 'Table'".VB Code:
Dim myConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;data source=" _ & "c:\mypath\db.mdb" ' Put here the connection string Dim myConnection As New OleDbConnection(myConnString) 'Create a new connection Dim MyDataSet As New DataSet() Dim MyDataAdapter As New OleDbDataAdapter("SELECT * from MyTable", myConnection) MyDataAdapter.Fill(MyDataSet, "MyTable") MyDataSet.Tables(0).Rows(0).Item(2) = 123412 'modify 3nd column of first row MyDataAdapter.Update(MyDataSet) 'Here's the error
Thnx
Xmas




Reply With Quote