Avatar of Andy Brown
Andy Brown
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Disabling CTRL+Home and CTRL+End

I am trying to disable record movement (under certain conditions). I can disable individual keys, but not the above two combinations.  I would like to keep Home and End working (on their own), as it helps when inside a field.

If pubBoolCallInProgress = True Then
    If KeyCode = 34 Or KeyCode = 33 Or KeyCode = 17 Or KeyCode = 35 Or KeyCode = 36 Then
        DoCmd.CancelEvent
        KeyCode = 0
        Exit Sub
    End If
End If

Open in new window


Any ideas....
Microsoft Access

Avatar of undefined
Last Comment
Andy Brown

8/22/2022 - Mon