Solved

Change rolling 12mth formula to rolling 6mth

Posted on 2014-01-22
2
292 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 100

Accepted Solution

by:
mlmcc earned 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports get subgroup count 1 60
Crystal Reports - How to Set Default Join Type to Left Outer Join 3 46
Crystal Reports 13 5 86
business objects to connect to MSSQL 6 102
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

749 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