I have a userform textbox ("wo_lts_time" in which the user is to enter a valid time. The event exit code is below:
I use this custom function to determine the appropriateness of the value entered by the user:Please Login or Register to view this content.
In my testing, I'm discovering that if a user enters gibberish ... "fdjfhdsgfdf" in this textbox, the function identifies an inappropriate date value entered and displays the error message. However, the code proceeds and errs in the line in red. "type mismatch".Please Login or Register to view this content.
Type mismatch indeed ... the line is looking for a timevalue (which can't happen with the text value submitted) to compare. I've already built in a check to detour the code when this procedure carries with it a blank value.
I am weak in my coding skills. Can someone suggest how I can identify and react appropriately to any value encountered that isn't a time value?
Jenn
Bookmarks