S
shood38
I cannot get a query to work. This query is to run automatically only on
weekdays (Mon-Fri)
IF the query runs on a Monday I want it to display Fridays data, otherwise
display data from previous day.
In the criteria spot on the query this is my code:
IIf(Weekday(Date())=2,Date()-3,Date()-1)
Question: What is wrong with above syntax?
weekdays (Mon-Fri)
IF the query runs on a Monday I want it to display Fridays data, otherwise
display data from previous day.
In the criteria spot on the query this is my code:
IIf(Weekday(Date())=2,Date()-3,Date()-1)
Question: What is wrong with above syntax?