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!

Help with exclude parameter with show "None" as default 1

Status
Not open for further replies.

jeffm777

IS-IT--Management
Nov 10, 2009
108
US
Working on a report and I need a parameter to exclude certain conditions from a class. The problem is there will be some times when I don't need to exclude any conditions. Is there a way to add an exclude "none" option as the default?
 
I would handle this by using prompt text with tells the user to enter "None" if there are no conditions to be excluded. You don't have to address this in your selection formula since this will work as long as the data you are checking with the parameter doesn't include the word "None".

You could also add the word "None" as the default value in the parameter setup screen.

-LB
 
Thanks lbass. That worked perfect! Now, do you know of a way (maybe in the Edit mask field) in the parameters to do an LTRIM function? I need to create either a dynamic parameter and have the user be able exclude "NONE" or do a static parameter using your instructions and do an LTRIM because some of the field values have spaces before the actual value. How does the "append all database values" option work? Not sure if it makes a difference but the field value will be different depending on the user.
 
You should just use the trim() function in the selection formula.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top