Solved

Crystal Reports conditional formula execution based upon field contents

Posted on 2016-10-28
5
20 Views
Last Modified: 2016-11-19
I developed an Order Backlog report to forecast anticipated billing dates. Some of our orders are "progress billings"... where the order is based upon various milestones:
  • First 1/3 with Purchase Order
  • Second 1/3 at delivery
  • Final 1/3 at plant approval

The Prog Billing2, Prog Billing3 and Prog Billing3 dates are calculated from the Start Date and the 1st Shot Date using the formula: DateADD ("d", 90, {OrderDet.User_Date1})

If the Terms are something other than a Progress Billing Term code, I don't want the dates to appear under the Prog Billing2, Prog Billing3 and Prog Billing3 headings.

I've tried using IF IsNull{OrderDet.CumulativeBilling... if blank then ProgBill2, etc should also be blank. But it could be a progress billing that the first billing hasn't occurred yet. I think the better condition is to check the TERMS. If Terms DO NOT START with Prog, then suppress/blank ProgBill2, ProgBill3 and ProgBill4 dates.

Order Backlog Design View
Order-Backlog-Progress-Billings.pdf

Thanks for any suggestions.
Regards, Lee
0
Comment
Question by:Lee Ingalls
  • 2
  • 2
5 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points (awarded by participants)
Comment Utility
Try it this way

NOT({TermsField}  LIKE '*PROG*')

mlmcc
0
 
LVL 7

Author Comment

by:Lee Ingalls
Comment Utility
Michael,

Thanks for the response.
Are you suggesting I add the NOT({TermsField}  LIKE '*PROG*') to my ProgBill formula?
If so, I'm not certain how??

NOT({Orders.User_Text2} LIKE '*PROG*')
DateADD ("d", 90, {OrderDet.User_Date1})

The ProgBilling2 field is the StartDate Field plus 90 days using ProgBill2 formula:  
DateADD ("d", 90, {OrderDet.User_Date1})

The ProgBilling3 field is the 1StShotDate field plus 120 days using ProgBill3 formula:
DateADD ("d", 120, {OrderDet.User_Date2})

Regards, Lee
ProgBill2-formula.pdf
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 500 total points (awarded by participants)
Comment Utility
I meant  for you to use the formula as the SUPPRESSION formula for the field

mlmcc
0
 
LVL 7

Author Comment

by:Lee Ingalls
Comment Utility
Perfect.
You are the man!
Thanks Michael.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

744 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

16 Experts available now in Live!

Get 1:1 Help Now