T
TraciAnnNeedsHelp
I use a query to calculate a minimum service time for customers using the
following expression:
Hours: IIf([DurationHours]<1.5 And [DurationHours]>0,1.5,[DurationHours])
On occasion the service technician visits a location multiple times in a
day. So, for a given day there may be three records as such:
Date StartD/T EndD/T
3/6/09 9:00:00 9:30:00
3/6/09 10:00:00 10:15:00
3/6/09 14:00:00 15:00:00
Using this scenario, since the time between the EndD/T of the first record
and the StartD/T of the second record is less than 2 hours, I need to SUM the
durations from both records and apply the minimum, if the minimum isn't met
by the total.
Since the StartD/T of the third record is greater than 2 hours from the
previous record, then I need to count that as a separate service record,
applying the minimum if necessary.
The output is only in the query. I do not want to update existing data.
Thank you for your help!
TraciAnn
following expression:
Hours: IIf([DurationHours]<1.5 And [DurationHours]>0,1.5,[DurationHours])
On occasion the service technician visits a location multiple times in a
day. So, for a given day there may be three records as such:
Date StartD/T EndD/T
3/6/09 9:00:00 9:30:00
3/6/09 10:00:00 10:15:00
3/6/09 14:00:00 15:00:00
Using this scenario, since the time between the EndD/T of the first record
and the StartD/T of the second record is less than 2 hours, I need to SUM the
durations from both records and apply the minimum, if the minimum isn't met
by the total.
Since the StartD/T of the third record is greater than 2 hours from the
previous record, then I need to count that as a separate service record,
applying the minimum if necessary.
The output is only in the query. I do not want to update existing data.
Thank you for your help!
TraciAnn