mtwildtrout
Technical User
I have the following code behind the OnKeyDown event for a command button in order to disable use of the Tab Key:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then
KeyCode = 0
End If
End Sub
The form's Key Preview property has been set to True.
After leaving the command button, I would like to re-enable use of the Tab Key for the next field. How & where do I code this?
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then
KeyCode = 0
End If
End Sub
The form's Key Preview property has been set to True.
After leaving the command button, I would like to re-enable use of the Tab Key for the next field. How & where do I code this?