J
Jenn
I am trying to write a query to calculate the date of a report three
days after the admit date. The report cannot be due on sat or sun so
if the third day falls on a sat it will be due the fri before and if it
falls on a sun it is due the following mon. I have this code started
but it is saying there is the wong number of arguments. Any ideas?
Thanks Jenn
CRISIS REPOT: IIf([PATIENT ADMIT DATE] <> [ODD] Or [ODD] Is Null,
IIf(Weekday(DateAdd("d", 3, [PATIENT ADMIT DATE]), 2) = 6, DateAdd("d",
2,
[PATIENT ADMIT DATE]), (IIf(Weekday(DateAdd("d", 3, [PATIENT ADMIT
DATE]), 2)
= 7, DateAdd("d", 4, [PATIENT ADMIT DATE]), DateAdd("d",3,[PATIENT
ADMIT
DATE]))), ""), "")
days after the admit date. The report cannot be due on sat or sun so
if the third day falls on a sat it will be due the fri before and if it
falls on a sun it is due the following mon. I have this code started
but it is saying there is the wong number of arguments. Any ideas?
Thanks Jenn
CRISIS REPOT: IIf([PATIENT ADMIT DATE] <> [ODD] Or [ODD] Is Null,
IIf(Weekday(DateAdd("d", 3, [PATIENT ADMIT DATE]), 2) = 6, DateAdd("d",
2,
[PATIENT ADMIT DATE]), (IIf(Weekday(DateAdd("d", 3, [PATIENT ADMIT
DATE]), 2)
= 7, DateAdd("d", 4, [PATIENT ADMIT DATE]), DateAdd("d",3,[PATIENT
ADMIT
DATE]))), ""), "")