L
lost
I have a database that is tracking and calculating crew hours on a job. The
issue I have run into is thta I can't get it to use one or the other. It
keeps trying to run both of them at the same time. one is this one Total
hours test: IIf([payF]>1,IIf([Punch IN Time]=0,+([Punch Out Time]-[Job site
arrival])*24-0.5,+([Job Site Departure]-[Job site Arrival])*24),0)
The other one is this one T-HRS-F: IIf([payf]>1,IIf([Punch Out
Time]>0,+([Punch Out Time]-[Punch In Time])*24-0.5,+([Job Site
Departure]-[Punch In Time])*24),0)
I want to run both in the same field in the query. The reason is if a crew
is done early at one job and goes to start another that day we want to track
how long they were there and what the cost of the job was. I have everything
working but this issue. It won't reconise each formula as it's own. It keeps
p[utting both of them together and running them thus giving the wrong answer.
If I break it into two fields it works.
Please help.
issue I have run into is thta I can't get it to use one or the other. It
keeps trying to run both of them at the same time. one is this one Total
hours test: IIf([payF]>1,IIf([Punch IN Time]=0,+([Punch Out Time]-[Job site
arrival])*24-0.5,+([Job Site Departure]-[Job site Arrival])*24),0)
The other one is this one T-HRS-F: IIf([payf]>1,IIf([Punch Out
Time]>0,+([Punch Out Time]-[Punch In Time])*24-0.5,+([Job Site
Departure]-[Punch In Time])*24),0)
I want to run both in the same field in the query. The reason is if a crew
is done early at one job and goes to start another that day we want to track
how long they were there and what the cost of the job was. I have everything
working but this issue. It won't reconise each formula as it's own. It keeps
p[utting both of them together and running them thus giving the wrong answer.
If I break it into two fields it works.
Please help.