Updating Access Database
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Updating Access Database

Threaded View

  1. #1
    Join Date
    Apr 2010
    Posts
    2

    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.

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center