Hi,
I need to write a code and this must be working in the afternoon :s
I need to update/insert a database with a dataset i thought using this code:
Dim S_conn As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb"
Dim S_sql As String = "SELECT * FROM rij"
Dim conn As OleDbConnection
Dim dat As OleDbDataAdapter
conn = New OleDbConnection(S_conn)
dat = New OleDbDataAdapter(S_sql, conn)
dat.Update(myDataset, "rij")
but on the last line there is a problem: Update unable to find TableMapping['rij'] or DataTable 'rij'.
Can someone help me please??
greetings
Keon
I need to write a code and this must be working in the afternoon :s
I need to update/insert a database with a dataset i thought using this code:
Dim S_conn As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb"
Dim S_sql As String = "SELECT * FROM rij"
Dim conn As OleDbConnection
Dim dat As OleDbDataAdapter
conn = New OleDbConnection(S_conn)
dat = New OleDbDataAdapter(S_sql, conn)
dat.Update(myDataset, "rij")
but on the last line there is a problem: Update unable to find TableMapping['rij'] or DataTable 'rij'.
Can someone help me please??
greetings
Keon