MikeMackey
Member
- Joined
- Aug 28, 2009
- Messages
- 5
- Programming Experience
- 1-3
Hi, I'm new to working with windows forms in this way so please bear with me.
I'm using an VB.net 2008 with an attached 2007 Access database. I have a datagridview that displays one of my tables from the database, with option to edit everything. My code behind is:
Now when I click button 1 it will save the data somewhere, because if I quickly run the program again the changes I made will be there. But if I go to the database to confirm my changes, I will see that nothing has happened, and then if I run the program again all changes will have reverted to the original state.
Any thoughts? Thanks
I'm using an VB.net 2008 with an attached 2007 Access database. I have a datagridview that displays one of my tables from the database, with option to edit everything. My code behind is:
VB.NET:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.BirthdayTableAdapter.Fill(Me.BirthdayDataSet.Birthday)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.BirthdayTableAdapter.Update(Me.BirthdayDataSet.Birthday)
End Sub
Now when I click button 1 it will save the data somewhere, because if I quickly run the program again the changes I made will be there. But if I go to the database to confirm my changes, I will see that nothing has happened, and then if I run the program again all changes will have reverted to the original state.
Any thoughts? Thanks