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

Mask Parameter

Status
Not open for further replies.

Khanson82

MIS
Mar 5, 2010
85
US
I want the parameter to show Yes or No to the User..
"Yes" would be if a number field in the report would be any number greater than 0. "No" would be if that number is 0. How is this done? Thanks again.
 
You can create a string parameter with options 'Yes' and 'No' and then in your record selection formula use:

(
(
{?parm} = 'Yes' and
{table.number} > 0
) or
(
{?parm} = 'No' and
{table.number} = 0
)
)

Unless I'm missing something, I don't think you are in the right forum for this type of question. Please try forum767 or forum149 for questions like this in the future.

-LB
 
One last question, if there are null values too how can I have the above parameter pull them back?The code has just left me.. Thanks..
 
(
isnull({table.number}) or
(
{?parm} = 'Yes' and
{table.number} > 0
) or
(
{?parm} = 'No' and
{table.number} = 0
)
)

This would always return nulls.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top