I'm using Access 97 and I have a form that's based on a table with an Autonumber field as the primary key.
I used the wizard to create buttons for First Record, Previous Record, Next Record, Last Record and New Record.
What I'd like to do is when the 'Next Record' button is clicked, have it check first to see if the current record is the last record and give the message 'You're at the end of the recordset' if it is. (Like it does when the primary key isn't an autonumber field. At least I assume that's why it behaves this way?)
Any suggestions?
Thanks in advance,
ainkca
I used the wizard to create buttons for First Record, Previous Record, Next Record, Last Record and New Record.
What I'd like to do is when the 'Next Record' button is clicked, have it check first to see if the current record is the last record and give the message 'You're at the end of the recordset' if it is. (Like it does when the primary key isn't an autonumber field. At least I assume that's why it behaves this way?)
Any suggestions?
Thanks in advance,
ainkca