TableAdapter.Update not updating table

Jay59

Member
Joined
Mar 12, 2008
Messages
5
Programming Experience
Beginner
Private Sub TechsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TechsBindingNavigatorSaveItem.Click
Try
Me.Validate()
Me.TechsBindingSource.EndEdit()
Me.TechsTableAdapter.Update(Me.QC_DatabaseDataSet.Techs)
MsgBox("Update successful")

Catch ex As Exception
MsgBox("Update Failed")
End Try

End Sub

I created the datasource and dragged it to a form.

When I hit save, I get the Update successful, but no data is in the database.


I'm sure its something simple, but I'm still learning.

TIA
 
If you Copy Always you get the usually empty db from project copied to build folder each time you start the app, which means anything you do during debugging runtime is lost between runs.
 
I have the database property set to Copy Always.

Read the DNU link in my signature. If you get to the end of it and still cant work out why "Copy Always" is the root cause of your table adapter "never saving the data problem" then you probably need to return your computer to the store for a refund and leave the coding to someone else.. ;)
 

Latest posts

Back
Top