aimeepeter
Registered User.
- Local time
- Today, 04:52
- Joined
- May 12, 2008
- Messages
- 11
Hi all,
I have written this code:
Private Sub TestStaff_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then
[Forms]![Shows Form]![Model#].SetFocus
End If
End Sub
to move from the end of a sub form to the next control on the main form. However when this is run, the focus is set to the 2nd next control on the form - it jumps over the next control [Model#] - weird.
Is there another way to write this code to move from the last field on the subform to the next field in sequence on the main form. Perhaps code to jump to a specific number in the tab order??
Cheers!
I have written this code:
Private Sub TestStaff_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 Then
[Forms]![Shows Form]![Model#].SetFocus
End If
End Sub
to move from the end of a sub form to the next control on the main form. However when this is run, the focus is set to the 2nd next control on the form - it jumps over the next control [Model#] - weird.
Is there another way to write this code to move from the last field on the subform to the next field in sequence on the main form. Perhaps code to jump to a specific number in the tab order??
Cheers!