Reputation: 750
I am trying to allow the user to pass a text parameter in an SSRS report like this:
'value1','value2','value3','value4'
The idea is to use it in my dataset query in a where in clause.
I think SSRS passes the above parameter to the query like this:
"'value1','value2','value3','value4'"
which messes up my query.
How can this work?
Upvotes: 0
Views: 1168
Reputation: 5531
Yes you can definitely do that,
You need to create parameter as below
Then If you are using sql statement you can use in your sql statement as
select * from customer where customerid=@ReportParameter1
Here are 2 links for Ref
https://reportsyouneed.com/ssrs-tip-put-parameters-in-your-query-not-your-filter/
Upvotes: 2