GODZILLA
Registered User.
- Local time
- Today, 15:11
- Joined
- Mar 15, 2010
- Messages
- 70
Good morning all,
I have a table with loads of dates in and their relative data.
Everyday i look at everything yesterday (Date()-1). That always works fine in an Access 2007 query.
However on a monday i want to look at between date()-1 and date()-3.
I ahve tryed using the below statement as criteria. It does not work.
IIf(Weekday(Date())=2,Between Date() And Date()-3,Date()-1)
So i tryed:
IIf(Weekday(Date())=2,>Date()-4,Date()-1)
A monday is weekday 2 so the staement should work but does not.
Any ideas?
I have a table with loads of dates in and their relative data.
Everyday i look at everything yesterday (Date()-1). That always works fine in an Access 2007 query.
However on a monday i want to look at between date()-1 and date()-3.
I ahve tryed using the below statement as criteria. It does not work.
IIf(Weekday(Date())=2,Between Date() And Date()-3,Date()-1)
So i tryed:
IIf(Weekday(Date())=2,>Date()-4,Date()-1)
A monday is weekday 2 so the staement should work but does not.
Any ideas?