• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 54
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

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