natekris8183
Board Regular
- Joined
- Mar 12, 2013
- Messages
- 156
I have looked online and found multiple references for validation of Date entry for userform textboxes, but I need something for time entry. I am doing a time study at work, and have created an automated and manual time entry log. The automated time entry is fine as it has a start/stop command button to capture the current time when pressed; however, I need to allow people to manually enter time when not available to use their PC. So I have the same two textboxes that hold the automated time entries then enabled for manual time entry. I need to make sure time is entered as "HH:MM:SS AM/PM" format. Formatting on exit is fine for it, except for when someone inputs "13:" and exits, it doesn't format to "01:00:00 PM" as it should. It stays as "13:". I need one of two solutions, either how to fix this validation so that it cancels out the exit if the entry is not entered as "HH:MM:SS AM/PM" OR when I press CommandButton "Save" to migrate the data into the table, to validate that the values in the StartTime textbox and EndTime textbox, are both entered AS time. Does anyone else wish there was a IsTime function such as IsDate