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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add all parameters 2

Status
Not open for further replies.

micro2005

IS-IT--Management
Mar 14, 2005
50
US
SQL server 2000 with Crystal Reports v10.
I have a string filed called area. I have to add this as a parameter to my report. I created a new paramter and selected the default values.
What I need now is to create a value called "ALL" which will select all the values automatically so that the user does not have to do it.
Can someone please tell me how to do this?

Thanks in advance!
 
Something like this in your select expert should work;

(If {?Parameter} <> "ALL" then
{table.field} = {?Parameter}
else If {?Parameter} = "ALL" then true)

 
Be sure to add "All" (without the "") to your default values list.

-LB
 
Check my FAQ for making sure that this passes to the database, and note the referenced FAQ for displaying the choices made:

faq767-3825

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top