date formula in crystal (next 7 days)

Posted on 2009-02-16
Last Modified: 2012-05-06
How can I prepare formula in crystal if I need see records if:

{mustshipdate} is in next 7 days. Field is in date format.
Question by:henryk123
    LVL 77

    Accepted Solution

    Use a record selection formula of...
    {tablename.mustshipDate}>= currentdate and {tablename.mustshipDate}<=currentdate+7
    LVL 100

    Assisted Solution

    If your data field is a datetime you may need to account for the time portion


    {tablename.mustshipDate}>= currentdate and {tablename.mustshipDate}< currentdate+8

    Date({tablename.mustshipDate}) >= currentdate and Date({tablename.mustshipDate}) <= currentdate+7


    Author Closing Comment

    thx guys

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    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. …
    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…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    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.

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now