• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

Date criteria in Access 2007

Hello Experts
I am trying to extract data older than 2 years but can't seem to get the criteria right.  I've tried >Date()-730 but it's not giving me what I need.
Any ideas?
LillyC
0
LillyC
Asked:
LillyC
1 Solution
 
Eric_DahlvangCommented:
0
 
Patrick MatthewsCommented:
Hello LillyC,

If you want older than two years:

WHERE DateField < DateAdd("yyyy", -2, Date())

Regards,

Patrick
0
 
LillyCAuthor Commented:
Thanks Patrick :@}
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now