Changing Textboxes (1 Viewer)

Zippyfrog

Registered User.
Local time
Today, 13:10
Joined
Jun 24, 2003
Messages
103
Currently I have two fields that makeup the time of day - a minute textbox and a seconds textbox. Currently, a user has to hit tab to go from one textbox to the other. How could I code it so that if a user hits colon : it will automatically jump to the seconds box for a more natural feeling? Basically can I simulate a "tab" when the user hits shift + semicolon
 

MarkK

bit cruncher
Local time
Today, 11:10
Joined
Mar 17, 2004
Messages
8,186
Check out the Change event of the Textbox object. Code might look like...
Code:
Private Sub tbMinute_Change()
  if instr(1, me.tbMinute.text, ":") then me.tbSecond.setfocus
End Sub
 

Users who are viewing this thread

Top Bottom