Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Access 2013 database not saving all the changes

$
0
0
I have written code in VB 2010 and using Access 2013 as the database. I am running the production version on another PC that does not contain Visual Studio. There is only one version of the database on the PC running the production version. My issue is that when I run the code it works correctly and I receive no errors. I navigate through each record and input data for each new record. I click save in the binding navigator tool bar and I receive no errors and it appears to save, but when I close the application and reopen it the fist record does not have all the information. the following is the save button code.
  Private Sub CombTable1BindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CombTable1BindingNavigatorSaveItem.Click

        Dim dg As DialogResult = MessageBox.Show("Would you like to continue saving your changes?", "Save Changes?", MessageBoxButtons.YesNo)

        If dg = DialogResult.Yes Then

            Me.Validate()
            Me.CombTable1BindingSource.EndEdit()
            Me.CombTable1TableAdapter.Update(Me.Comb1DataSet.CombTable1)




        End If

        If dg = DialogResult.No Then

        End If

 

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>