i am having touble accessing an access DB. I have an ADODC control pointing to a table but it will not read any other record than the first one in the table.
second:
I am having trouble adding a new record to an access DB
The Adodc is designed to read only one record at a time. To see the other records you will need to move through the recordset using
Adodc1.Recordset.MoveNext
Adodc1.Recordset.MovePrevious
To add a new record set the EOFAction property to 2 - adDoAddNew and use the following code.
Adodc1.Recordset.AddNew
All of the above code can be placed in button click events. You should also be able to move through the recordset by clicking the arrow buttons on the Adodc itself. Thanks and Good Luck!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.