Question : Report Parameters in SSRS displayed in Dropdown

Can someone show me how to do this?
Id like to place a parameter that would display in a dropdown :
for Year = 2009,2010
for month = February, October
                   October will have a value of 1,Feb will have 2

Here is my stored proc in my report..
CREATE PROCEDURE sp_GettranCount
(
@year char(4),@tranmonth int)
 AS

Select * FROM VW_tranLANG_COUNT
WHERE tranYEAR=@year
AND tranMONTH=@tranmonth
GO

Answer : Report Parameters in SSRS displayed in Dropdown

I would create a data set for each of these parameters.  The query for each would be the lable and values that you want available for the parameters.

e.g.

Dataset TranMonths...

Query:

Select 'October', 1

union all

Select 'February', 2

Similar for Year...

Have the parameter use the datasets for allowed values.

-G

Random Solutions  
 
programming4us programming4us