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

Setting up a report to give all values or choose from the parameters

Status
Not open for further replies.

Hacim

Technical User
Sep 5, 2002
63
US
Using CR 8.5 w/SQL
Is there a way to design a report that would allow somone to choose a specific value in a parameter prompt or allow Crystal select all the values in a field.
Example: If someone using a viewer wanted to see a report on all of {wo.location}s or they wanted to choose a specific location, how would you set up a parameter to allow that kind of flexiblity. In other so they didn't have to choose every location during the parameter prompt.
TIA
 
Allow them to enter "ALL" in the parameter and in your record selection formula use something like:

({?Parm} = "ALL") OR ({wo.location} = {?Parm})

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thanks, that works great.
Does creating the 'ALL' selection in the parameter work because Crystal does not recognize that selection, therefore chooses all the values for that field?
Thanks again
 
It works because of the logic in the record selection formula. If the value is "ALL" the formula would always evaluate to TRUE.

Cheers,
- Ido


CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top