Hi people,
I am a VB.NET/ADO beginner and i'm having trouble with DataSets. I have basically created a simple form to which I dragged and dropped some text boxes from a Database I made. This worked fine and using the Navigation bar that Visual Studio (2005 Pro) creates automatically I can navigate forward and backwards. However, when I add a record and try to save it, it does not save to the database. As you will know, this means when the program is closed, all changes are lost.
The code from the Save button is below.
Please can someone tell me where I am going wrong?
TIA,
Bisto
I am a VB.NET/ADO beginner and i'm having trouble with DataSets. I have basically created a simple form to which I dragged and dropped some text boxes from a Database I made. This worked fine and using the Navigation bar that Visual Studio (2005 Pro) creates automatically I can navigate forward and backwards. However, when I add a record and try to save it, it does not save to the database. As you will know, this means when the program is closed, all changes are lost.
The code from the Save button is below.
VB.NET:
Private Sub Tbl_HouseBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Tbl_HouseBindingNavigatorSaveItem.Click
Me.Validate()
Me.Tbl_HouseBindingSource.EndEdit()
Me.Tbl_HouseTableAdapter.Update(Me.HouseDataSet.tbl_House)
End Sub
Please can someone tell me where I am going wrong?
TIA,
Bisto
Last edited by a moderator: