S
Sue Compelling
Hi
Here’s my situation where I’d really appreciate some help...
If my customer has only one status record (using [JobID] for the count)
AND the [JobSubStatus] = “Awaiting Appointment Adviceâ€
then I want the # of days to be calculated as: Now()-[datereceived]
However if there is more than one status record
AND the [JobSubStatus] = “Awaiting Appointment Adviceâ€
then I want the # of days to be calculated from the:
[JobStatusDate] of the [JobSubStatus] where it equals “Appointment
Scheduled†- [datereceived]
Note – this criteria is part of a bigger IIF statement below which works OK
with the criteria so far.
=IIf(IsNull([JobSubStatus]),(Now()-[datereceived]),IIf([JobSubStatus]="Awaiting
Paperwork",(Now()-[dateappt]),IIf([JobSubStatus]="Awaiting
Spares",([JobStatusDate]-[dateappt]),IIf([JobSubStatus]="Awaiting
Contractor",([JobStatusDate]-[dateappt]),([JobStatusDate]-[datereceived])))))
TIA
Here’s my situation where I’d really appreciate some help...
If my customer has only one status record (using [JobID] for the count)
AND the [JobSubStatus] = “Awaiting Appointment Adviceâ€
then I want the # of days to be calculated as: Now()-[datereceived]
However if there is more than one status record
AND the [JobSubStatus] = “Awaiting Appointment Adviceâ€
then I want the # of days to be calculated from the:
[JobStatusDate] of the [JobSubStatus] where it equals “Appointment
Scheduled†- [datereceived]
Note – this criteria is part of a bigger IIF statement below which works OK
with the criteria so far.
=IIf(IsNull([JobSubStatus]),(Now()-[datereceived]),IIf([JobSubStatus]="Awaiting
Paperwork",(Now()-[dateappt]),IIf([JobSubStatus]="Awaiting
Spares",([JobStatusDate]-[dateappt]),IIf([JobSubStatus]="Awaiting
Contractor",([JobStatusDate]-[dateappt]),([JobStatusDate]-[datereceived])))))
TIA