Advertisement

04.28.2008 at 03:36PM PDT, ID: 23360474
[x]
Attachment Details

Formula in Crystal Reports

Asked by Jackson_62 in Business Objects, Crystal Reports Software

I have built the following formula in crystal.  The problem is - is that it never works the same each time.  I think it may have something to do with the true and else statements but I cannot be sure.  My goal - I have a report with several parameters.  If the parameter is blank, the assume all records, otherwise, use the filter.

I could potentiallhave up to 10 different parameters in one large report, so it could have a multitude of combinations of blank verses not blank.

IT is very odd how sometimes certain fields will cause the data to filter, but othertimes it will not - I have tried numerous combinations, but have not yet hit a pattern.

please HELP  Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
if {ACTRTV01.B1LWNB} in {?SvcAcctFrom} to {?SvcAcctthru} then true
and
if {?Site} = "" then true
else
{ACTRTV01.B1EKCF} = uppercase({?Site}) 
and
if {?City} = "" then true
else
{HOURTV01.CITY} = uppercase({?City})
and
If {?Charge Code Selection} = "" then true 
else {RECRTV01.CPJPCD} = uppercase({?Charge Code Selection})
[+][-]04.28.2008 at 04:00PM PDT, ID: 21458370

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Business Objects, Crystal Reports Software
Sign Up Now!
Solution Provided By: mlmcc
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.28.2008 at 04:06PM PDT, ID: 21458397

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 04:54PM PDT, ID: 21458618

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628