When entering the time, I wanted to use the masked edit control but having a problem. When enter a time example: 10:15:00 AM. How would I mask it? Thank you.
The mask property of the control can be set to ##:##:## ??. However, the control can only distinguish between numbers and letters. The user could enter 99:99:99 XX. You would still have to validate the time with the IsDate() function.
If you are going with an ActiveX control, try the DTPicker in the Common Controls and set the format property to 2 (dtpTime). This provides a text box with and Up/Down control and the user can only enter a valid time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.