I have a table (Time_T] with two fields; time_in and time_out. The fields are date format. The entries would look like this:
time_in time_out
5/7/2005 10:21:14 A.M. 5/7/2005 4:21:14 P.M.
I would like to query this table and return time_in, time_out and total_time. The total_time would be the difference, in hours and minutes. This is, as you guessed, a time and attendance thing. I tried the datediff but could not get it to work correctly. The 2nd part of the question is that we work in 15 minute increments. How can I get it to round to the nearest 15 minute increment. Such as total time would be 7.45 or 8.00, etc.
Thanks in advance for your help.
Shannan
time_in time_out
5/7/2005 10:21:14 A.M. 5/7/2005 4:21:14 P.M.
I would like to query this table and return time_in, time_out and total_time. The total_time would be the difference, in hours and minutes. This is, as you guessed, a time and attendance thing. I tried the datediff but could not get it to work correctly. The 2nd part of the question is that we work in 15 minute increments. How can I get it to round to the nearest 15 minute increment. Such as total time would be 7.45 or 8.00, etc.
Thanks in advance for your help.
Shannan