I am using MS Access 2010. I am working out each member of staffs working hours for the month in a MS Access query.
[WorkDate]
[TimeIn]
[TimeOut]
minus a 1 hour lunch.
I would like to display the total hours worked for the month in a hours:minutes format.
I tried this approach: -
Call a field WorkHoursPerMin in a query:-.
Expand|Select|Wrap|Line Numbers
- WorkHoursPerMin: Sum(DateDiff("n",[timeIn],[timeOut]))
For the display I used a second query based on the first where I did the following:
Expand|Select|Wrap|Line Numbers
- WorkHoursPerMonth: CDate([WorkHoursPerMin]\60 & ":" & [WorkHoursPerMin] Mod 60)
Your help with this is greatly appreciated.