I do have following code
If KeyCode = 38 Then
'"UpArrow"
DoCmd.GoToRecord , , acPrevious, 1
ElseIf KeyCode = 40 Then
'"DownArrow"
DoCmd.GoToRecord , , acNext, 1
Of course there is an error when the cursor is standing on the first record and the "uparrow" key is pressed on.
Can I test the recordnr in the if-statement ?
If KeyCode = 38 Then
'"UpArrow"
DoCmd.GoToRecord , , acPrevious, 1
ElseIf KeyCode = 40 Then
'"DownArrow"
DoCmd.GoToRecord , , acNext, 1
Of course there is an error when the cursor is standing on the first record and the "uparrow" key is pressed on.
Can I test the recordnr in the if-statement ?