S
Scott D. Barrish
There are several issues that I need help on. According to the examples
I've seen in books, MSDN, and news groups, this should be a very simple
exercise. I have found often that simple exercises fail to point out a DUH!
factor which makes me say DOH!
1) When I run the Data Adapter wizard, it creates the INSERT and SELECT
command objects. However, it gives me an error on the generation of the
UPDATE and DELETE command objects. So, I manually entered the necessary
code for the Update Command Object for the Data Adapter. In the properties
window, it displays the 3 command objects.
2) I have created a dataset and bound my controls on my form. I am able to
successfully navigate forward and backward through the table on my form.
3) When I update a field and click on the Update command button, nothing
happens because when I close the application and view the database table
directly through Access, the field was never modified. However, if I modify
the field, then navigate 1 before or after the modified record, modify a
field on the new record, click on the submit button, the first record that
was "updated" shows as modified when viewed in Access but the 2nd record is
unchanged.
4) The code for the cmdUpdate button is:
myDataAdapter(dsComputerList1).Update() [VB.NET]
Would appreciate some guidence on this matter.
Sincerely,
Scott D. Barrish
I've seen in books, MSDN, and news groups, this should be a very simple
exercise. I have found often that simple exercises fail to point out a DUH!
factor which makes me say DOH!
1) When I run the Data Adapter wizard, it creates the INSERT and SELECT
command objects. However, it gives me an error on the generation of the
UPDATE and DELETE command objects. So, I manually entered the necessary
code for the Update Command Object for the Data Adapter. In the properties
window, it displays the 3 command objects.
2) I have created a dataset and bound my controls on my form. I am able to
successfully navigate forward and backward through the table on my form.
3) When I update a field and click on the Update command button, nothing
happens because when I close the application and view the database table
directly through Access, the field was never modified. However, if I modify
the field, then navigate 1 before or after the modified record, modify a
field on the new record, click on the submit button, the first record that
was "updated" shows as modified when viewed in Access but the 2nd record is
unchanged.
4) The code for the cmdUpdate button is:
myDataAdapter(dsComputerList1).Update() [VB.NET]
Would appreciate some guidence on this matter.
Sincerely,
Scott D. Barrish