I have an application where records are displayed one at a time, and the user clicks an 'arrow' button on screen to display the next or previous record.
I would like to add the capability to use the keyboard up/down arrow keys to do the same thing. So in the KeyDown property of a control I used:
DoCmd.GoToRecord, , acnext
That worked fine. Then in the KeyUp property I used:
DoCmd.GoToRecord, ,acPrevious
That didn't work as expected, but gave me the next record, not the previous one.
How do I get to the previous record with the up arrow key?
Robert
I would like to add the capability to use the keyboard up/down arrow keys to do the same thing. So in the KeyDown property of a control I used:
DoCmd.GoToRecord, , acnext
That worked fine. Then in the KeyUp property I used:
DoCmd.GoToRecord, ,acPrevious
That didn't work as expected, but gave me the next record, not the previous one.
How do I get to the previous record with the up arrow key?
Robert