AC5FF
Registered User.
- Local time
- Today, 12:26
- Joined
- Apr 6, 2004
- Messages
- 552
I run a daily trouble report but I am not getting weekend troubles looked at because the report only looks at today's issues - Query uses =DATE() as a criteria.
I want to run a 3 day report if today is Monday. I have read through several threads here, and other places, but have gotten nothing to work. I would prefer to keep away from VB (I'm terrible there).
If I run the query now, I get 8 results - that's what I expect. If I run the query with >date()-3 I get 26 results. Again, what I would expect.
I've tried modifying the =date() to:
IIf((Format(Date(),"ddd"))="mon",>Date()-3,Date())
and
IIf(Weekday(Date())=2,>Date()-3,Date())
but both of these criteria return zero records. I would have thought either one would work.
Can anyone spot what I may have wrong here?
I want to run a 3 day report if today is Monday. I have read through several threads here, and other places, but have gotten nothing to work. I would prefer to keep away from VB (I'm terrible there).
If I run the query now, I get 8 results - that's what I expect. If I run the query with >date()-3 I get 26 results. Again, what I would expect.
I've tried modifying the =date() to:
IIf((Format(Date(),"ddd"))="mon",>Date()-3,Date())
and
IIf(Weekday(Date())=2,>Date()-3,Date())
but both of these criteria return zero records. I would have thought either one would work.
Can anyone spot what I may have wrong here?