Check the keycode : Key « Access « VBA / Excel / Access / Word






Check the keycode

 
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
        If KeyCode = vbKeyPageDown Or _
         KeyCode = vbKeyPageUp Then
         KeyCode = 0
        End If
End Sub

 








Related examples in the same category

1.Writing the Form_KeyDown Event Procedure
2.Shift key, alt key and control key mask
3.Writing the Form_KeyUp Event Procedure
4.Writing the Form_KeyPress Event Procedure
5.Arrow key, page up, page down key