-
April 2nd, 2010, 10:54 AM
#1
Updating Access Database
I'm having problems updating my existing access database in vb. Whenever I exit my program, the changes made won't save. How can I correct this? This is the code I have so far...
Code:
Private Sub Customer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'AutioEssentialsDataSet3.Customer' table. You can move, or remove it, as needed.
Me.CustomerTableAdapter2.Fill(Me.AutioEssentialsDataSet3.Customer)
End Sub
Private Sub SaveToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripButton.Click
Me.Validate()
Me.CustomerBindingSource2.EndEdit()
Me.CustomerTableAdapter2.Update(Me.AutioEssentialsDataSet3.Customer)
End Sub
Last edited by HanneSThEGreaT; April 7th, 2010 at 03:01 AM.
-
April 4th, 2010, 10:55 AM
#2
Re: Updating Access Database
Did you try dropping the 'me' part and or the table like this "Me.CustomerTableAdapter2.Update(AutioEssentialsDataSet3)"??
-
April 5th, 2010, 09:42 AM
#3
Re: Updating Access Database
Yes, dropped the Me......still didn't work.
-
April 5th, 2010, 04:44 PM
#4
Re: Updating Access Database
-
April 7th, 2010, 03:01 AM
#5
Re: Updating Access Database
djyungstylez, please make use of [CODE] tags when posting code, as explained here :
http://www.codeguru.com/forum/showthread.php?t=403073
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|