Hello, I have inherited a query (used in a macro) that a date column has the criteria of <>Date() Or <>Date()-1
To me this seams to need an AND not an OR.
Actually I say make it <Date()-1.
Depends what you really want.
<Date()-1
returns any date earlier than yesterday, but no future dates.
It looked to me like they wanted
not(x=date() or x = date()-1)
which will return any date that is not today's or yesterdays. This would include days in the future.
Thanks everyone. The date is when we got the data so if it is in the future there is a problem. The NOT is possibly what they were looking for, but did not add and I doubt he would know how to do the parenthesis around both criteria.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.