I have a CommandButton which executes some code (shows a Form modally). I'm using a "shortcut" for it - F10 - and .KeyPreview at True:
Code:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    Select Case (KeyCode)
        Case vbKeyF2
            '...
        Case vbKeyF10
            cmdUsers.Value = True
        Case vbKeyF12
            '...
    End Select
End Sub
But whenever i press F10 and it doesn't get executed (for some reason that is not important), i have to re-set focus to any other control (even thow cmdUsers is NOT visible) in order for any other "shortcut" (F2, F12) to work. Why's that? It work's fine after when the code executes normally.