Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
On Error GoTo KeyDownERR
If KeyCode = 38 Then 'Нажата клавиша ВВЕРХ
DoCmd.GoToRecord , , acPrevious
ElseIf KeyCode = 40 Then 'Нажата клавиша ВНИЗ
DoCmd.GoToRecord , , acNext
End If
Exit Sub
KeyDownERR:
Err = 0
End Sub
|