Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Parameter Get All Values Expand / Collapse
Posted Saturday, September 28, 2013 12:53 PM


Group: General Forum Members
Last Login: Wednesday, August 12, 2015 9:37 AM
Points: 15, Visits: 23

I have created a parametered called 'Pay Via"
From the dropdown box, the user can select:
- Visa
- MasterCard
- Robs Amex
- American Express

My report is working fine if the user selects one of the above options.
However, I need to add an option to this dropdown box called "All".

I just don't know to reference all of the above pay vias into the "Available Values" area.

Post #1499710
Posted Monday, September 30, 2013 10:09 AM


Group: General Forum Members
Last Login: Thursday, July 21, 2016 9:25 AM
Points: 176, Visits: 543
There are a couple of ways to do what you want. No matter what approach you choose, you will have to change the filter to allow for multiple options. The simplest change you can make to the parameter is to check the option "Allow multiple values." The filter will need to be changed from a comparison of equality with one value (Fields!name.Value = @Parameter) to a comparison against multiple values: Fields!name.Value IN (@Parameter).

The other way is to provide a manual label of "All" and a value of "*" (asterisk) and use a comparison of LIKE. If the filter is in a SQL statement, instead of an asterisk use the percent sign (%).

Hope this helps.

Post #1500093
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse