HI everyone.
I was looking for some code to disable the Pageup/down keys within a form and the code I got is not working.
first of all, I used the 'Cycle' property of the form to 'Current record' I also added this code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case 33, 34
KeyCode = 0
End Select
End Sub
This didn't work and the forms records still move when the two Keys are pressed
Does anyone have an idea what i might be doing wrong?
thanks
I was looking for some code to disable the Pageup/down keys within a form and the code I got is not working.
first of all, I used the 'Cycle' property of the form to 'Current record' I also added this code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case 33, 34
KeyCode = 0
End Select
End Sub
This didn't work and the forms records still move when the two Keys are pressed
Does anyone have an idea what i might be doing wrong?
thanks
