C
Cyrille Armand
Hi
Help a newbie!!!
I am trying to copy the content of a datatable (dt) into an Access table. It
seems the datatable has the data I want, and when I execute the code below it
doesn't generate errors, my only problem is that it doesn't work. Once I open
my Access db, the table is still empty. What gives?
Dim oleDa As OleDbDataAdapter = New OleDbDataAdapter("Select
* fom " + Table.Name, cnn.ConnectionString)
Dim Ocmd As OleDbCommandBuilder = New
OleDbCommandBuilder(oleDa)
oleDa.AcceptChangesDuringFill = False
oleDa.Fill(dt)
oleDa.Update(dt)
oleDa.Dispose()
Help a newbie!!!
I am trying to copy the content of a datatable (dt) into an Access table. It
seems the datatable has the data I want, and when I execute the code below it
doesn't generate errors, my only problem is that it doesn't work. Once I open
my Access db, the table is still empty. What gives?
Dim oleDa As OleDbDataAdapter = New OleDbDataAdapter("Select
* fom " + Table.Name, cnn.ConnectionString)
Dim Ocmd As OleDbCommandBuilder = New
OleDbCommandBuilder(oleDa)
oleDa.AcceptChangesDuringFill = False
oleDa.Fill(dt)
oleDa.Update(dt)
oleDa.Dispose()