I'm trying to use the following a the criteria for a query.
IIf(DatePart("d",Now())<=10,<=(Month(Now())-2),<=(Month(Now())-1))
Even though the first condition is met, the query returns no records. When I remove the <= signs, the query returns the records for February correctly.
Any insight or help will be greatly appreciated.
Thanks in advance,
Kopy
IIf(DatePart("d",Now())<=10,<=(Month(Now())-2),<=(Month(Now())-1))
Even though the first condition is met, the query returns no records. When I remove the <= signs, the query returns the records for February correctly.
Any insight or help will be greatly appreciated.
Thanks in advance,
Kopy