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

Discrete or 'All' parameter 1

Status
Not open for further replies.

IceRuby

Technical User
Jan 20, 2004
85
AU
Hi there
Using Crystal V9.0 to SQL server.
I have two parameters - 1st to select table (string) and 2nd to select product (number).
Users would like to be able to select either a single product value or wildcard for all. Is this possible?

e.g. Select required table (parameter 1) (mandatory)
Select discrete product number or * (* should provide listing of all product numbers within parameter 1)

Tried code within record selection:
If ?parameter = [0] then //0 equivalent to *
true
else
{table.field} = ?parameter

but entire report hangs.

Appreciate your help, thanks in advance
 
Create default values for your parameter of "All". Then write a record selection formula:

If {?ProductParamter}="ALL" then true else
{ProductField}={?ProductParameter}

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top