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!

creating a boolean parameter 1

Status
Not open for further replies.

iwm

Programmer
Feb 7, 2001
55
US
How do you create a parameter that uses a boolean value?
I am currently using Crystal Reports version 9.
Your assistance in this matter is greatly appreciated.
 
Right click the Prameters heading the the Field Explorer and select New and change the data type to a boolean.

To use the parameter, you might set the default values to false being the first (should be the default), and then in the record selection formula use something like:

if not({?MyBooleanParm}) then //means it's false
{table.field}=false
else
{table.field}=true

-k
 
synapsevampire,
What if a table.field doesn't exist for this particular parameter? Is it possible to create a boolean parameter without referencing a table.field.



iwm
 
Sure, just go ahead and create it.

What are you intending to do with it?

You can certainly use it for suppression, etc.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top