Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Parameters with Multiple Selections

$
0
0

Hi there,

I am having some issues with a SQL report I am creating via using Visual Studio, Hoping its a simple query for someone who knows a little more than I do! The situation is this: -

1) I have created a parameter and set it to allow multiple values.
2) I have populated my drop down list successfully by creating a dataset to include choices.
3) When I run the report and select a single item from my parameter drop down, the filtered report works correctly.
4) When I selectmultipleitems from my drop down, I get no results (no errors, just no results).

I amguessing its because my "combined" selection from the drop down creates a parameter value that doesn't meet any of the available choices in the drop down.

How can I get the report to separate each value and search for them correctly? I assume I need to delimit the responses somehow but...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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