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

Date Range Inclusion

Status
Not open for further replies.

Khanson82

MIS
Mar 5, 2010
85
0
0
US
I have a hire date in this format (mm/dd/yyyy)..the report will run the 1st day of every month and I want to capture all records that are within the same month, 1 year ago for th whole month...

For example, if it 07/01/2010, I want the report to capture all records with a hire date of 07/01/2009-7/31/2009...

What is the easiest way to get this with a formula?? Thanks again..
 
Include this in your selection formula:


year(hiredate) = year(currentdate) - 1

and

month(hiredate) = month(currentdate)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top