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

Scheduled report to run as of a date with a start date exactly one month less 1

Status
Not open for further replies.

jchewsmith

Technical User
Nov 20, 2006
161
US
I am trying to create a report that will be scheduled to run the 26th of every month with a date range filter >=26th of prior month to < 26th of current month?
So for example the report should run as scheduled on May 26th with the data being based on a filter of April 26th to May 25th

 
Enter the following code into the record selection formula:

[Code Record_Selection_Formula]
{Table.DateField} >= DateSerial(Year(CurrentDate),Month(CurrentDate) - 1, 26) and
{Table.DateField} < Date(Year(CurrentDate),Month(CurrentDate), 26)
[/Code]

Cheers
Pete

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top