V
v.maggs
In Visual Studio 2005, I have a snippet of VB 2005 code which runs
without error but does not update the Access 2002 database. Any ideas?
Dim strSQL As String = "SELECT [Batch.Comments], [Batch.Is Active],
[Batch.Is Pre Entered] FROM BATCH WHERE [Batch.Batch Key] = 4643"
Dim strBatchComments As String = "WL 939, GFPC: Sr-90, Vam sr-90"
Dim da As New OleDbDataAdapter(strSQL, My.Settings.Oxford_1)
Dim dbtbl As New DataTable()
da.Fill(dbtbl)
dbtbl.Rows(0).Item(0) = strBatchComments
dbtbl.Rows(0).Item(1) = True
dbtbl.Rows(0).Item(2) = True
dbtbl.AcceptChanges()
da.Update(dbtbl)
without error but does not update the Access 2002 database. Any ideas?
Dim strSQL As String = "SELECT [Batch.Comments], [Batch.Is Active],
[Batch.Is Pre Entered] FROM BATCH WHERE [Batch.Batch Key] = 4643"
Dim strBatchComments As String = "WL 939, GFPC: Sr-90, Vam sr-90"
Dim da As New OleDbDataAdapter(strSQL, My.Settings.Oxford_1)
Dim dbtbl As New DataTable()
da.Fill(dbtbl)
dbtbl.Rows(0).Item(0) = strBatchComments
dbtbl.Rows(0).Item(1) = True
dbtbl.Rows(0).Item(2) = True
dbtbl.AcceptChanges()
da.Update(dbtbl)