BP Forums
Update Data Tabel From Edit - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+----- Forum: Programming Help (https://bpforums.info/forumdisplay.php?fid=9)
+----- Thread: Update Data Tabel From Edit (/showthread.php?tid=375)



Update Data Tabel From Edit - mfbf - 07-30-2011

I am trying to update the database when I make changes to the data but this code won't work. Thanks for the help in advanced!!

me.validate()
me.customersbindingsource.endedit()
me.tableadaptermanager.updateall()
msgbox("Successfully Updated")

I get the message box but when I re load the application the changes are gone.


Re: Update Data Tabel From Edit - brandonio21 - 07-30-2011

What type of database are you using? If it is a MySQL Database, it is because you didn't actually write the changes to the server, you simple changed the table locally.

If you could give us more information about your project, we would be able to help you a little easier.