Crystal reports formula – equal or less than 60 days

30 pts.
Tags:
Crystal Reports
Crystal Reports formulas
Crystal Reports XI
Hi I am using crystal report XI I am trying to set -up a formula to retrieve all records where the Expiration EndDate <= 60 Days to Current date. Thanks.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Okay, so you place in the selection formula
<pre>
{TRXPOL.PreAuthEndDate} in currentdate to Currentdate + 60
</pre>
This will pull all records with an expirationEndDate between the date you are running the report and 60 days after the date you run it.

If you want to pull all records, but list them as you have below, the put your code in an if statement
<pre>
IF {TRXPOL.PreAuthEndDate} < Currentdate + 60 Then
“Pre- Authorization is less than 60 Days”
Else
“Pre- Authorization Expired”
</pre>
and place this in the select statement:
<pre>
{TRXPOL.PreAuthEndDate} < Currentdate + 60
</pre>

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • JennyMack
    Hi Monk2008, Thank you for clarifying on the program -- hopefully one of our members can find you an answer shortly! Thanks, Jenny Community Manager
    4,280 pointsBadges:
    report
  • Monk2008
    Thanks Jane for your help. Can you give me a bit more detail. I am a bit of a novice at CR so, bear with me. I am looking to retrieve all records where {TRXPOL.PreAuthEndDate} is <= 60 days. How can I get it to do something like this IF {TRXPOL.PreAuthEndDate} < Currentdate + 60 Then “Pre- Authorization is less than 60 Days” Else “Pre- Authorization Expired” Not sure if this will help any but, I also have {TRXPOL.PreAuthStartDate} Thank you.
    30 pointsBadges:
    report
  • Jade1977
    Okay, so you place in the selection formula
    {TRXPOL.PreAuthEndDate} in currentdate to Currentdate + 60
    
    This will pull all records with an expirationEndDate between the date you are running the report and 60 days after the date you run it. If you want to pull all records, but list them as you have below, the put your code in an if statement
    IF {TRXPOL.PreAuthEndDate} < Currentdate + 60 Then
    “Pre- Authorization is less than 60 Days” 
    Else
    “Pre- Authorization Expired”
    
    and place this in the select statement:
     {TRXPOL.PreAuthEndDate} < Currentdate + 60 
    
    440 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following