?
Solved

Change rolling 12mth formula to rolling 6mth

Posted on 2014-01-22
2
Medium Priority
?
300 Views
Last Modified: 2014-01-22
I have the following records selection formula that pulls pay period data for the past 12 months which works fine.  I now need the same report for a rolling 6 month period and don't know how to modify this formula.

{PRTIME.PER_END_DATE} >= DateAdd("yyyy",-1,DateSerial(year(CurrentDate),month(CurrentDate),1)) and

{PRTIME.PER_END_DATE} < DateAdd("yyyy",0,DateSerial(year(CurrentDate),month(CurrentDate),1))
0
Comment
Question by:jph826
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 800 total points
ID: 39799855
Try


{PRTIME.PER_END_DATE} >= DateAdd("m",-6,DateSerial(year(CurrentDate),month(CurrentDate),1)) and

{PRTIME.PER_END_DATE} < DateAdd("yyyy",0,DateSerial(year(CurrentDate),month(CurrentDate),1))

mlmcc
0
 

Author Comment

by:jph826
ID: 39800254
Perfect - Thank you mlmcc!
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question