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

Need to include all data two years back from current date in query

I am writing an access report. I need to include information that includes two years back from the current date. How exactly would you do that in a query? Any help would be much appreciated!
0
HOTWATT
Asked:
HOTWATT
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
On the criteria line of the date field:

> DateAdd("d",-731,Date())

Will return all records 730 days in the past from today.

Jim.
0
 
HOTWATTAuthor Commented:
Thanks for the help!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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