If you're trying in the KeyDown event, use
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If (KeyCode = vbKeyF) And (Shift And acCtrlMask) > 0 Then
MsgBox "Ctrl-F", , "Form_KeyDown"
End If
End Sub
If you're trying in the KeyPress event, use
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 102 Then
MsgBox "Ctrl-F", , "Form_KeyPress"
End If
End Sub
--
Doug Steele, Microsoft Access MVPhttp://
www.AccessMVP.com/DJSteele
(no e-mails, please!)
Thanks for the message,
I get trap keystorke vbKeyControl or vbKeyF, but can not trap both of
them at same time.
Thanks again,