I have 2 fields in a table called [start_time] and [end_time]. They are both in short time format.
I am displaying these in a form with a calculated field to show the time duration as well. (ie. [duration] = [end_time]-[start_time]) this is also displayed in short time format.
Example
What i now want to show is another column which will round the duration down to the nearest hour and display the figure as a number. So....
I have tried a multitude of different ways including ROUND, LEFT, STR etc but have hit the wall. I keep coming unstuck due to the times actually being stored as numbers before they are fomatted into the readable short time.
Hope that made sense. Can anyone help me?
I am displaying these in a form with a calculated field to show the time duration as well. (ie. [duration] = [end_time]-[start_time]) this is also displayed in short time format.
Example
Code:
start time end time duration 12:00 12:50 00:50 12:00 13:10 01:10 12:00 13:59 01:59 12:00 14:45 02:45
Code:
start time end time duration duration rounded 12:00 12:50 00:50...would become...0 12:00 13:10 01:10...would become...1 12:00 13:59 01:59...would become...1 12:00 14:45 02:45...would become...2
Hope that made sense. Can anyone help me?
Comment