C
croy
On some data-entry forms, I'd like to neutralize accidental
hits to the NumLock key (that would turn it off).
I tried this:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As
Integer)
If KeyCode = vbKeyNumlock Then
DoCmd.CancelEvent
Else
End If
End Sub
.... but it doesn't seem to work.
Any thoughts appreciated.
hits to the NumLock key (that would turn it off).
I tried this:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As
Integer)
If KeyCode = vbKeyNumlock Then
DoCmd.CancelEvent
Else
End If
End Sub
.... but it doesn't seem to work.
Any thoughts appreciated.