J
Joe
I am building a database to track appointment adherence for a warehouse. I
have 6 fields in which I need to look at [Appointment Date], [Appointment
Time], [Clock in Date], [Clock in Time], [Clock out date], and [Clock out
time].
I need an expression to give me the total hours of detention based on the
below:
If a driver is clocked in before or no more than 15 minutes after his
appointment time. Then he is eligible for detention which starts after 2
hours of his appointment time and date or his clock in time if he was clocked
in within the 15 minute time window.
If the driver showed up more than 15 minutes late for his appointment then
there is no detention time accumulated.
I am new to access and this expression is beyond me. I have so far:
=IIf([Appointment Date]+[Appointment Time]>=[Clock In Date]+[Clock In
Time],(DateDiff("n",[Appointment Date]+[Appointment Time],[Clock Out
Date]+[Clock Out TIme])),0)
But I am getting an Error# in the field unless the driver was late. Thank
you for any help I can get.
have 6 fields in which I need to look at [Appointment Date], [Appointment
Time], [Clock in Date], [Clock in Time], [Clock out date], and [Clock out
time].
I need an expression to give me the total hours of detention based on the
below:
If a driver is clocked in before or no more than 15 minutes after his
appointment time. Then he is eligible for detention which starts after 2
hours of his appointment time and date or his clock in time if he was clocked
in within the 15 minute time window.
If the driver showed up more than 15 minutes late for his appointment then
there is no detention time accumulated.
I am new to access and this expression is beyond me. I have so far:
=IIf([Appointment Date]+[Appointment Time]>=[Clock In Date]+[Clock In
Time],(DateDiff("n",[Appointment Date]+[Appointment Time],[Clock Out
Date]+[Clock Out TIme])),0)
But I am getting an Error# in the field unless the driver was late. Thank
you for any help I can get.