I'm struggling with putting together a form to allow the input of times into a database that I'm building... the purpose of the database is to log stage times for competitors on a car rally!
The users need to input a start time and end time for each car on each stage, along with any stage penalties that may be incurred.
The actual mechanics of the form are fine - if the times are entered correctly than it works everything out for us in exactly the way it should - but the problem I have is with simplifying the way that the times are entered... to make sure they are entered correctly in the first place!
Stage Start times will always be either the exact minute or half minute.
eg 09:01:00 or 10:23:30
Stage End times can be any time
eg 09:07:22 or 10:30:00
Stage Penalty times will always be whole minutes - but I can deal with these separately so they're not necessarily part of the issue here
What I want to be able to allow the users to do is just to type in
901 and it understand that as 09:01:00
102330 and it understand that as 10:23:30
1030 and it understand that as 10:30:00
I've played around a lot with input masks but I can't find one that works for all the above situations.... At the moment I'm having to force them to enter all 6 digits of the time and there's a lot of grumbling going on and mistakes being made because of it... should maybe add the input needs to be completed as quickly and accurately as possible in order to publish the stage results as soon as possible after the end of each stage.
Any ideas / suggestions gratefully received! I've pondered making them put the hours, minutes and seconds for each 'time' in 3 separate text boxes and then using a function to convert that to a proper time, but wasn't sure if that would be the best way to go forward... and how I could then validate that...
The users need to input a start time and end time for each car on each stage, along with any stage penalties that may be incurred.
The actual mechanics of the form are fine - if the times are entered correctly than it works everything out for us in exactly the way it should - but the problem I have is with simplifying the way that the times are entered... to make sure they are entered correctly in the first place!
Stage Start times will always be either the exact minute or half minute.
eg 09:01:00 or 10:23:30
Stage End times can be any time
eg 09:07:22 or 10:30:00
Stage Penalty times will always be whole minutes - but I can deal with these separately so they're not necessarily part of the issue here
What I want to be able to allow the users to do is just to type in
901 and it understand that as 09:01:00
102330 and it understand that as 10:23:30
1030 and it understand that as 10:30:00
I've played around a lot with input masks but I can't find one that works for all the above situations.... At the moment I'm having to force them to enter all 6 digits of the time and there's a lot of grumbling going on and mistakes being made because of it... should maybe add the input needs to be completed as quickly and accurately as possible in order to publish the stage results as soon as possible after the end of each stage.
Any ideas / suggestions gratefully received! I've pondered making them put the hours, minutes and seconds for each 'time' in 3 separate text boxes and then using a function to convert that to a proper time, but wasn't sure if that would be the best way to go forward... and how I could then validate that...