B
Brian
I have a text box for entering a time. It defaults to the current time. The
intent is that the user keys in just four numbers (24-hour format) for the
current time, and it then auto-tabs to the next control.
Input mask: 00:00;0;_
Auto-tab: True
Default value: Format(Time(),"Short Time")
However, the auto-tab works only when the time in the box (at the point
where the user enters the box to type in the time) has all four characters.
If the current hour has two digits (10:00 - 23:49), then it works. If the
current hour has only a single digit (0:00 - 9:59), then it does not work,
regardless of what time the user keys into the box.
Evidently, this has something to do with the fact that, when the box already
has four characters, the hour/minute separator colon is in the correct
(third) position for the input; however, when the hour in the box is a single
digit, the colon is in the second position and never appears into the third
position as the user types; it simply disappears. This, in turn, seems to
prevents the input mask & therefore auto-tab from functioning.
intent is that the user keys in just four numbers (24-hour format) for the
current time, and it then auto-tabs to the next control.
Input mask: 00:00;0;_
Auto-tab: True
Default value: Format(Time(),"Short Time")
However, the auto-tab works only when the time in the box (at the point
where the user enters the box to type in the time) has all four characters.
If the current hour has two digits (10:00 - 23:49), then it works. If the
current hour has only a single digit (0:00 - 9:59), then it does not work,
regardless of what time the user keys into the box.
Evidently, this has something to do with the fact that, when the box already
has four characters, the hour/minute separator colon is in the correct
(third) position for the input; however, when the hour in the box is a single
digit, the colon is in the second position and never appears into the third
position as the user types; it simply disappears. This, in turn, seems to
prevents the input mask & therefore auto-tab from functioning.