Solved

Optional Parameter fields in Crystal Reports

Posted on 2014-12-15
2
234 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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