Joejoe79sa
Member
- Joined
- Mar 24, 2007
- Messages
- 7
- Programming Experience
- Beginner
Ok so i asked about the binding navigator before and i sorted it out by using this code to save my new records.
Now i i dont know how to commit changes made to current records. For instance say i want to change the client idnr. I retype the IDnr but how do i commit the changes to the database? Thanks for the help guys...
Later
VB.NET:
Try
Me.StudentBindingSource.EndEdit()
Me.StudentTableAdapter.Update(Me.StudantDataSet.Student)
MsgBox("Update Successfull", MsgBoxStyle.OkOnly)
Catch ex As Exception
MsgBox("Update Failed", MsgBoxStyle.Critical)
End Try
Later
Last edited by a moderator: