Can you elaborate on that? Specifically what you mean by string-to-table function? Myabe provide examples.
Main Topics
Browse All TopicsOk, I'm trying to build a report that users can lookup orders that have items on it in various status. There are easily 40 different status without about 5 relating to "shipped" (drop shipped, regular shipped, expedited shipped, etc).
So, I want to have a drop-down that is populated by a query that lists all status. However, if you simply want to find the "shipped" orders, you don't want to click five statuses. In addition, some users might not think to click all of them.
So, I want to have a "shipped" selection and I want the values to be 'S' and 'U'
My question is, how do I pass a report parameter value that is equal to two or three of these values listed below. Since I'm using an IN () selection in the sql query for the data source, I would have thought that I could simply make the value of the parameter S, U but that doesn't work. I have played with 'S', 'U' and such but doesn't seem to trigger it.
Any thoughts?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
macecase,
Have you verified that your query works in management studio?
The Bigstatus in @BigStatus piece of code is correct. Is it possible that the field is a Char datatype and has preceeding whitespace? example "A" is not the same as "A "
A string to table function would allow you to pass in a comma seperated string and return a table of values for it. see http://blogs.x2line.com/al
I'd also look at creating a table of values but this would need to be maintained as status are updated.
Two columns
Name/Label StatusList
Shipped S,U
You could then use your "label" in the report parameter so they select Shipped, but in the background it would use the StatusList as the parameter value.
Business Accounts
Answer for Membership
by: PockyMasterPosted on 2009-05-03 at 09:22:34ID: 24290349
What I've done in the past is to pass the multivalues as a comma seperated string, so... e.g. S,U
and then use a custom string-to-table function in SQL which can be joined to the resultset.
Or you could create a mapping table with simplified search words, and map these into the combination of statuses.