I have a button on a form which calls the DoCmd.GoToRecord and is supposed to grab the next record. Currently, Access is grabbing the "next record" according to the Customer Name field in my database, but this is not the desired behavior. I would like it to grab the next record according to a field called "ContactID", which is the way the objects are storred in my table.
Thus, the name of a field in the table and the name of the field in the form are both "ContactID" and the name of the Table/Form is "Contacts"
The current code is:
DoCmd.GoToRecord , , acNext
Funny thing is that this used to work before I got an error and had the DB repair itself.
Thanks,
--Dan
Thus, the name of a field in the table and the name of the field in the form are both "ContactID" and the name of the Table/Form is "Contacts"
The current code is:
DoCmd.GoToRecord , , acNext
Funny thing is that this used to work before I got an error and had the DB repair itself.
Thanks,
--Dan