I have a form with 6 textboxes on it:
Allocated
Mobile
AtScene
LeftScene
AtHospital
Green
Each textbox defaults to the current time when the user enters it. There is validation on the entries when a time is put in to check it isn't earlier than the previous box in the order above. The problem I have is when the default time is entered and then the users puts in a different time in a later box but then changes it to the time in the previous box the validation falls over. I think it is to do with the seconds being stored although both the table field and text box is set to short time which shouldn't show the seconds.
Example.
Mobile entry is defaulted to 12:15 in the display
AtScene entry is put to 12:16
User then needs to change AtScene to 12:15. The validation tells me it is invalid.
The code behind it checks that Mobile isn't greater then AtScene, as you can't be at scene before you are towards something or at it.
I think the problem is seconds. is there a way of getting rid of seconds completely so only storing hours and minutes.
Thanks
Allocated
Mobile
AtScene
LeftScene
AtHospital
Green
Each textbox defaults to the current time when the user enters it. There is validation on the entries when a time is put in to check it isn't earlier than the previous box in the order above. The problem I have is when the default time is entered and then the users puts in a different time in a later box but then changes it to the time in the previous box the validation falls over. I think it is to do with the seconds being stored although both the table field and text box is set to short time which shouldn't show the seconds.
Example.
Mobile entry is defaulted to 12:15 in the display
AtScene entry is put to 12:16
User then needs to change AtScene to 12:15. The validation tells me it is invalid.
The code behind it checks that Mobile isn't greater then AtScene, as you can't be at scene before you are towards something or at it.
I think the problem is seconds. is there a way of getting rid of seconds completely so only storing hours and minutes.
Thanks