Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

entering time without typing the colon

Status
Not open for further replies.

swaybright

Technical User
Jun 25, 2003
156
0
0
US
Is there a way for users to enter a time into a date/time field without needing to type the colon?

Specifically, users should input time in military format but if they forget to put a zero in front of times earlier than 10:00, I would like the field to correct and accept the value.

Typed[tab][tab]Value
0230[tab][tab]2:30
230[tab][tab]2:30
1330[tab][tab]13:30

I attempted the following input mask !90:00 however, if the user does not type the zero, it does not seem to fill from right to left and gives an error that value is not appropriate for the input mask (Example 2 from above)
 
On your form you ought to have a control for Hours and one for Minutes and edit the entries appropriately.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top