Hello,
I have the following code in a form to checked the keys. I want to have and another choice in the case in combination with keys, for example ctrl+q.
Can you help me?
Thank you!
Dimitris
I have the following code in a form to checked the keys. I want to have and another choice in the case in combination with keys, for example ctrl+q.
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
On Error Resume Next
Select Case KeyCode
Case vbKeyDown
KeyCode = 0
DoCmd.GoToRecord , , acNext
Case vbKeyUp
KeyCode = 0
DoCmd.GoToRecord , , acPrevious
Case vbKeyHome
DoCmd.GoToRecord , , acFirst
Case vbKeyEnd
DoCmd.GoToRecord , , acLast
End Select
End Sub
Can you help me?
Thank you!
Dimitris