Often I find that I need to select all items from a parameter field pick list when running a report. I would like the option of selecting "all" from the pick list in order to select all values from the list.
Change the record selection formula to something like:
----------------------------------------
({?Parm} = "ALL" OR ({field} = {?Parm})
----------------------------------------
Cheers,
- Ido
CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
That would depend on whether the picklist is inclusive of all items in the table, or just all items in the picklist.
If you want all items in the picklist, create a value called "All" in the defaults, and modify the report->Edit selection formula->record to:
(
if {?Parm} <> "ALL" then
{table.field} = {?Parm}
else
if {?Parm} = "ALL" then
true
)
Note that the parentheticals and double qualification of the ALL in the IF and the ELSE are to assure SQL pass through (Check with Database->Show SQL).
Assuring pass through SQL is based on your version of Crystal, which is generally a good idea to post when requesting technical information.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.