Is it possible to use F keys to call Forms/Queries. I have used the code below and found when i press F7 spell ceck runs:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF7 Then
Dim stDocName As String
stDocName = "qryDepartment1"
DoCmd.OpenQuery stDocName, acNormal, acEdit
End If
End Sub
I have put this code in the keydown on the form.
Do i need to disable the existing F keys duties
Thanks,
Danian
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF7 Then
Dim stDocName As String
stDocName = "qryDepartment1"
DoCmd.OpenQuery stDocName, acNormal, acEdit
End If
End Sub
I have put this code in the keydown on the form.
Do i need to disable the existing F keys duties
Thanks,
Danian