Solved

Formula syntax issue with Crystal Reports XI

Posted on 2007-03-22
6
856 Views
Last Modified: 2008-01-09
I'm using Crystal Reports XI, and am not able to come up with the proper syntax for a formula I need to complete a report.

I have a field called {hbs_jcjd.activity_no_} and a field called {hbs_jcjd.amount_}.   What I need is to have the amount displayed when the activity number is 99900.  When I've attempted the formula I end up with hundreds of thousands of records when I know there is only 18 for my particular parameters.  I remove the formula from the body of the report, hit refresh and I'm back down to 18.

My programming skills are next to zero, so I'm hoping this is a fairly simple formula that someone will be able to easily impart some wisdom upon me.

Thanks in advance,
Corrie
0
Comment
Question by:CBanman
  • 4
  • 2
6 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 18776443
Where are you adding the formula?

What is the formula?

mlmcc
0
 
LVL 9

Author Comment

by:CBanman
ID: 18780276
I have added the formula into the Details section of the report.  The formula I started with was:

if {hbs_jcjd.activity_no_} = "99900"
then {hbs_jcjd.amount_}

Activity number 99900 is a total for all activity numbers, but when this formula is inserted into the Details it I get pages of 0's, and an exponential number of duplicate records.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 125 total points
ID: 18780974
Try this

In the detail sectioin put the {hbs_jcjd.amount_}
Right click the detail section
CLick SECTION EXPERT
Click the formula button next to SUPPRESS
{hbs_jcjd.activity_no_} <>  "99900"

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Author Comment

by:CBanman
ID: 18781306
Do I need to have {hbs_jcjd.activity_no_} inserted anywhere in the report for this to work properly, or just have it suppressed in the Detail section?
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18781471
You shouldn't.

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 18782972
Glad i could help

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

21 Experts available now in Live!

Get 1:1 Help Now