Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting query to output < today()-1

Status
Not open for further replies.

AT76

Technical User
Apr 14, 2005
460
US
Hi,

I have a query in access and I'm trying to figure out under criteria what is the correct syntax to obtain all dates less than yesterdays date.... < today()-1

Thanks!
 
Thanks Ken... I forgot to mention that the date field is in format: YYYYMMDD. Could you advice what the correct formatted way is.

Thanks.
 
I figured it out:

<Format(Date(),"yyyymmdd")

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top