Show Prior Month End Date

Posted on 2006-04-26
Last Modified: 2008-02-01

I am using CR 8.5, when I run a report its based on data as of prior month end.  So if I run a report today on 4/26/06 the data is as of 3/31/06.  The report has a paramater date prompt.
{vvwNote.UV_AS_OF_DATE} = {?As_Of_Date}
My problem is if no data exists I surpress the Report Title and Date in PHA and
show PHB the Report Title and a statement "No Records Exists"
however, no matter what I do I cant seem to reflect the statement "No Records Exists" with a Month End Date.
I need to make this statement is several reports which I have yet to get to work.
What am I missing.
Question by:LMNowak
    LVL 28

    Expert Comment

    Create a formula to calculate it off of your parameter:

    //@Last day of Previous Month
    {?As_Of_Date} - day({?As_Of_Date})

    You can then use this formula whereever you need it on the report.

    Author Comment

    When I run the report I put in the prompt 3/31/06 and the
    //@Last day of Previous Month
    {?As_Of_Date} - day({?As_Of_Date})
    reflects 2/28/06.
    LVL 28

    Accepted Solution

    I am confused.  You stated that when you run the report it is based on Prior MOnth End. Is that not the case if you run it on the last day of a month?

    Author Comment

    Actually we can run the report at anytime however, our data is always as of the prior month end date regardless if the last day falls on a weekend/holiday or not.

    But I did resolve my issue, I was making it harder that it should be.  Since I use a date parameter prompt I took out the formula date and put in PHB the parameter date.  If no records exists, my date field will be null, so I need to use the parameter.  Hope this makes some sense.

    Thank you for your fast response.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    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…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now