Solved

Optional Parameter fields in Crystal Reports

Posted on 2014-12-15
2
229 Views
Last Modified: 2015-01-16
I have a crystal report that was written in crystal 2008 off a 2008 sql server.
The report has a total of 5 parameters.
Not all the parameters need to be selected for the report to be ran.
Is there a way to make some optional and some required?
0
Comment
Question by:metalteck
2 Comments
 
LVL 18

Assisted Solution

by:vasto
vasto earned 250 total points
ID: 40501175
Edit the parameter and set the optional prompt to true as it is shown in the attached file. In you formulas you can use HasValue to check if the parameter was set
if hasvalue({?Parameter} then 
....

Open in new window

0
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 40501894
Be sure the value returned is TRUE if there is no value passed.

I generally do this by

(Not HasValue({?Param1}) OR {?Param1} = {Field1})

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. …
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
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…

910 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

24 Experts available now in Live!

Get 1:1 Help Now