ajking
Technical User
- Aug 13, 2002
- 229
I have just moved over from MSAccess vb Programming to Visual Studio and I am stuck before I have really started.
I have followed the help video files that came with visual studio and also read and reread the help files.
I created the database with a single table (as in the video)and 3 rows of data
I have created the Dataset and set up the form with the textboxes as shown in the vid.
I created a save button using the code supplied:
BindingSource1.EndEdit()
CustomerTableAdapter.Update(MyCompanyDataSet.Customer)
No matter how I try, as soon as I close the form and reopen, the customer name has not changed.
Even loading the source material from the video i.e. forms and vb code, still does not update the table in the database.
Have I missed something or am I doing something wrong?
All I want to do is to change a record and the change to be passed back to the original table. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980
I have followed the help video files that came with visual studio and also read and reread the help files.
I created the database with a single table (as in the video)and 3 rows of data
I have created the Dataset and set up the form with the textboxes as shown in the vid.
I created a save button using the code supplied:
BindingSource1.EndEdit()
CustomerTableAdapter.Update(MyCompanyDataSet.Customer)
No matter how I try, as soon as I close the form and reopen, the customer name has not changed.
Even loading the source material from the video i.e. forms and vb code, still does not update the table in the database.
Have I missed something or am I doing something wrong?
All I want to do is to change a record and the change to be passed back to the original table. TIA
'Life is what happens to you while you are busy making other plans' John W. Lennon 1940-1980