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

Null Values in Parameter

Status
Not open for further replies.

Khanson82

MIS
Mar 5, 2010
85
US
I have this in my select expert:

(({?Members} = 'Yes' and {command.members} > 0) or ({?Members} = 'No' and isnull({command.members})))

The parameter only has a choice of Yes or No to the User..Yes being members with 1+ in the field.No being members with a null value.. My problem is when you choose both es and no or just no, I need it to pull records where the command.members is null.. Any ideas?? Thanks again!


CRXI
 
Figured it out..Just made two extra formula fields.. one that took the member field and made all null values show as 0 by converting to string....Then used another formula field to convert back to number, so I could format correctly..Then used:


(({?Members} = 'Yes' and ({@members2}) > 0) or (({?Members}) = 'No' and ({@members2}=0) ))

Worked great...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top