Solved

Crystal Reports Formula end of the month and previous

Posted on 2014-09-25
2
1,587 Views
Last Modified: 2014-09-25
I want to automate a report to run on the first of every month to show past due items and items that will be due for the month.  So on 10/1/14 I want to run the report and it will filter anything with a date of 10/31/14 and before.  How can I do that?
0
Comment
Question by:ITworks
[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 500 total points
ID: 40344794
To get the items due last month use

{DateDueField} IN LastFullMonth

For the items in the next month (this won't be exactly right but it is close

{DateDueField} IN Next30Days

For the current month you could also use

{DateDUeFIeld} >=CurrentDate and
{DateDUeFIeld} < DateAdd('m',1,CurrentDate)

mlmcc
0
 
LVL 18

Expert Comment

by:vasto
ID: 40344857
When you say "automate" , do you mean that you are going to run the report manually and you want it to get automatically the month data ? The other option is to set something to run the report for you at the beginning of each month and send it to you by email so you can stop thinking about it at all. What is your goal ?
With case 1 you need to set the logic to get the month period inside the report and mlmcc explained how to do this. With case 2 you can set the month period in the scheduler, which is going to run the report for you. You need to define 2 parameters in your report : Start Date and End Date for the beginning and the end of the reporting period and ask the scheduler to fill the current month dates there.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Problem Description:   Couple of months ago we upgraded the ADSL line at our branch office from Home to Business line. The purpose of transforming the service to have static public IP’s. We were in need for public IP’s to publish our web resour…
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 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