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

Parameters 1

Status
Not open for further replies.

dBjason

Programmer
Mar 25, 2005
355
US
CR 9.2

I have a parameter set up for a field called 'Classification'. It has four default values it can be which works great.

Problem is, my boss wants a fifth value for 'All' instead of having to click 'Add' four times in a row to get a full report.

How can I do this?

Thanks in advance,
Jason
 
Add in another default value of All, and in the Report->Selection Formulas->Record alter it to:

(
if {?MyParm} <> "All" then
{table.field} = {?MyParm}
else
if {?MyParm} = "All" then
True
)

Note that the parentheticals and the intentional use of an ELSE IF instead of just an ELSE is there to help Crystal properly create SQL and pass it to the database for faster processing.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top