I have come across a problem i can't seem to fix. I have a database for recording employees hours like a time sheet. I have the following formula used to calculate the total hours worked per day. it works fine until they have time in all 6 fields?????
TotalHours: (Nz(DateDiff("n",[start time],Nz([time out1],nz([time out2],[finish time]))),0)+Nz(DateDiff("n",Nz([time in2],Nz([time in1],[start time])),[finish time]),0))/60
I have the following
Start time
time out1
time in1
time out2
time in2
finish time
They seldom use all 6 but today someone did and it does not calculate properly. for the following times it totals only 4 hours when it should total 5.
7:05 am - 11:00am - 12:00 pm - 1:00 pm - 4:25 pm - 4:30 pm
Can anyone help?