Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Multivalued parameter in SSRS 2012

$
0
0

I am designing a report using SSRS 2012.

I want to pass multiple transactions id to the report as parameter.

----------

In the report i have declared @tranid as parameter and set "Allow multiple values" checked.

So how to pass more than one transactions ids through my code ?

and how to write query in the report.

---------

My code (which is not working)

strids =  "tran1,tran2,tran3"

Dim param1 As New ReportParameter("tranid", strIds, False)

Dim params As New Collections.Generic.List(Of ReportParameter)

 params.Add(param1)

ReportViewer1.ServerReport.SetParameters(params)

_______

In the report my query, Select * from myTable where transactionNo in (@tranid)

If i pass only one then its working. If i select more than 1 then not working.



h2007



Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>