ajking
Technical User
- Aug 13, 2002
- 229
I have recently migrated from VB programming behind MSAccess and am following lesson09 in the visual basic 2005 express edition regarding updating Database records using a very simple example but, no matter what I try, the source table is not updating. One would presume the instructional video and code would give the desired result but I cannot get the database record to update even though I have used the lesson09 coding included here:
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.CustomerTableAdapter1.Fill(Me.MyCompanyDataSet1.Customer)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
BindingSource1.EndEdit()
CustomerTableAdapter1.Update(MyCompanyDataSet1.Customer)
End Sub
End Class
Any suggestions would be much appreciated as I don't want to proceed further until I have got my head around this. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.CustomerTableAdapter1.Fill(Me.MyCompanyDataSet1.Customer)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
BindingSource1.EndEdit()
CustomerTableAdapter1.Update(MyCompanyDataSet1.Customer)
End Sub
End Class
Any suggestions would be much appreciated as I don't want to proceed further until I have got my head around this. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980