Hello,
I am getting the following error message at daaop5.Update(ds).
Update unable to find TableMapping['Table'] or DataTable 'Table'.
Any ideas what's causing the error?
Thanks
Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aop29.mdb"
Dim objConnection As New OleDb.OleDbConnection(ConnectionString)
Dim sql As String = "Select * from Customer"
Dim daaop5 As New OleDb.OleDbDataAdapter(sql, objConnection)
Dim cmdb As New OleDbCommandBuilder(daaop5)
Dim ds As New DataSet()
daaop5.Fill(ds, "Customer")
daaop5.Update(ds, "Customer")
C1TrueDBGrid1.AllowAddNew = True
daaop5.SelectCommand.CommandText = ("INSERT INTO Customer(Description) VALUES('" & C1TrueDBGrid1.Columns(0).Value & "')")
ds.Clear()
daaop5.Update(ds) ----Error Line
daaop5.Fill(ds)
I am getting the following error message at daaop5.Update(ds).
Update unable to find TableMapping['Table'] or DataTable 'Table'.
Any ideas what's causing the error?
Thanks
Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aop29.mdb"
Dim objConnection As New OleDb.OleDbConnection(ConnectionString)
Dim sql As String = "Select * from Customer"
Dim daaop5 As New OleDb.OleDbDataAdapter(sql, objConnection)
Dim cmdb As New OleDbCommandBuilder(daaop5)
Dim ds As New DataSet()
daaop5.Fill(ds, "Customer")
daaop5.Update(ds, "Customer")
C1TrueDBGrid1.AllowAddNew = True
daaop5.SelectCommand.CommandText = ("INSERT INTO Customer(Description) VALUES('" & C1TrueDBGrid1.Columns(0).Value & "')")
ds.Clear()
daaop5.Update(ds) ----Error Line
daaop5.Fill(ds)