I am using the following code (as gleaned from a Microsoft website) to update a connected MS Access table. Although it does NOT trigger an error message
it does NOT update the table. I have also included a variable declaration from the Form_Load event.
Any help would be greatly appreciated.
Try
Me.TestTableAdapter.Update(Me.AphDb1DataSet3.Test)
Me.AphDb1DataSet3.Test.AcceptChanges()
Catch
MsgBox("Update NOT successful ! " & Err.Number)
End Try
---------------------------------------------------------------------------------------------------
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'AphDb1DataSet3.Test' table. You can move, or remove it, as needed.
Me.TestTableAdapter.Fill(Me.AphDb1DataSet3.Test)
End Sub
it does NOT update the table. I have also included a variable declaration from the Form_Load event.
Any help would be greatly appreciated.
Try
Me.TestTableAdapter.Update(Me.AphDb1DataSet3.Test)
Me.AphDb1DataSet3.Test.AcceptChanges()
Catch
MsgBox("Update NOT successful ! " & Err.Number)
End Try
---------------------------------------------------------------------------------------------------
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'AphDb1DataSet3.Test' table. You can move, or remove it, as needed.
Me.TestTableAdapter.Fill(Me.AphDb1DataSet3.Test)
End Sub