Reputation: 21
I'm trying to construct a report in SSRS and I would like to know if instead of using a multiple selection drop down box to search for a particular set of serial numbers, I can give users the ability to manually enter multiple serial numbers of their choice into a text box.
The list of serial numbers in the particular data set is quite large, so with a drop down user would be scrolling through thousands of serial numbers, as opposed to just typing in serial numbers of interest.
Upvotes: 1
Views: 2611
Reputation: 17615
You can do this using a parameter
Using adventureworks added a parameter @soid The split statement is
=SPLIT(JOIN(Parameters!SOID.Value,","),",")
The dataset query is
SELECT SalesOrderID, RevisionNumber, OrderDate, DueDate, ShipDate, Status, n OnlineOrderFlag, SalesOrderNumber, PurchaseOrderNumber, AccountNumber, CustomerID, SalesPersonID, TerritoryID, BillToAddressID, ShipToAddressID, ShipMethodID, CreditCardID, CreditCardApprovalCode, CurrencyRateID, SubTotal, TaxAmt, Freight, TotalDue, Comment, rowguid, ModifiedDate
FROM Sales.SalesOrderHeader WHERE SalesOrderID in (@SOID)
Upvotes: 2