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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dates that are 18 months old

Status
Not open for further replies.

bwedmund

Technical User
Oct 29, 2000
17
US
I have a database that is used for work. I need to have my database generate a report that shows dates that are 18 months or older.

thanks
Barry
 
You can use the DateDiff() function to determine the interval between Now() and the date you need to compare it to. You'll find it's syntax and usage under help.
 
Include records/rows where

[datefield]<=dateadd(&quot;m&quot;,-18,now())


Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top