Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set parameter value to "All" 1

Status
Not open for further replies.

renee35

MIS
Jan 30, 2007
199
I am just getting back into Crystal XI after being out for a couple of years. I am trying to figure out how to set a parameter value to "ALL"? For example, I want to be able to select a particular Employee or "All" employees?

Any help would be appreciated!

Thanks!!

Thanks a bunch!!

-T
 
IF {?Employee}<> 0 THEN {table.employee}={?Employee} ELSE {table.employee}={table.employee}
 
({?ParameterName} = "All" or
{Table.Field} = {?ParameterName})

This is what I use.
Regards
Phil
 
Thanks a bunch for both options!!

Thanks a bunch!!

-T
 
Quick question, how do you set the parameter to "All" if it's a number? If I use the 2nd sample, I get an error message: "A number is required here'?

Thanks again for any assistance!!

Thanks a bunch!!

-T
 
Add the value 0 to your parameter pick list, with "All" as the description. Then set up your record selection formula like this:

(
if {?Parm} <> 0 then
{table.emplno} = {?Parm} else
if {?Parm} = 0 then
true
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top