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

how to add "ALL" to parameter 1

Status
Not open for further replies.

buck149

Programmer
Jan 22, 2007
54
US
Crystal 10, SQL server 2005

I want to set a string parameter where when no value entered, it will cover all values else it will cover entered multiple values or single value.

Thanks
 
buck,

Perhaps a conditional record selection formula would work for you. I do not think that you can leave a parameter blank though, may have to use a keyword to trigger an all search.

Code:
IF {?Parameter} = "All" THEN
    ~Record Selection~
ELSE
    ~Record Selection~ AND
    {Table.Field} = {?Parameter}

I have never tried this application myself, but it is worth a try.

Hope This Helps,


Mike
______________________________________________________________
[banghead] "It Seems All My Problems Exist Between Keyboard and Chair"
 
Add "All" to your parameter list of values, and then set up the formula like:

(
IF {?Parameter} <> "All" THEN
{table.string} = {?Parameter} ELSE
if {?parameter} = "All" then
true
)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top