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

SELECT EXPERT FORMULA

Status
Not open for further replies.

cguyreports

Technical User
Mar 8, 2004
32
US
I am using crystal 8.5 and trying to write a formula in the select expert that will use my parameter field. What I have are two choices in my parameter field and when the run the report they can select one choice from the parameter, but I need them to beable to select a choice like "All Cards" that way they won't have to select manuall all the cards.

Any help would be great. Thanks.
 
This questions been asked many times before.

Check out synapsevampire's faq "Optimizing SQL Pass Through using the Record Selection Formula":
FAQ767-3825


HTH


Gary Parker
MIS Data Analyst
Manchester, England
 
Thanks, I have tried that but the problem I am experiencing is when 'ALL' is selected it is bring back everything and not the two items I have in my parameter.
 
Try something like:

if {?parm} = "All" then
{table.field} in ["Parmchoice1","Parmchoice2"] else
if {?parm} <> "All" then
{table.field} = {?parm}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top