Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to pass multiple values in one selection in Reporting Services

Avatar of macecase
macecase asked on
Microsoft SQL Server 2005SSRS
5 Comments1 Solution466 ViewsLast Modified:
Ok, 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?
SELECT     FULLORDERNO, SHIPDATE, ITEMNO, DESCRIPTION, ITEMQTYS, BIGSTATUS, FullName
FROM         WhoOrderedWhatItems
WHERE     (ITEMNO LIKE UPPER(@ItemNo) + '%') AND (BIGSTATUS IN (@BigStatus))
ORDER BY SHIPDATE DESC, FULLORDERNO DESC
 
 
Here are the Statuses:
 
	2	Announced to Ship on     
	D	At Drop Shipper          
	7	Auth. for Return         
	Z	Auto-Checked             
	b	Back Ord-Not Alcd        
	B	Backordered              
	d	CC Auth Declined         
	a	Continuity Header        
	p	Continuity Ready         
	C	Customer Canceled        
	U	Drop Shipped             
	E	Exchanged                
	u	Forced Drop Ship         
	8	Full Credit Issued       
	J	Gift Prod With Inv       
	G	Gift Product-No Inv      
	W	In The Warehouse         
	N	Item Canceled            
	F	Item Canceled            
	M	Misc. CC Credit          
	L	Multi-Rack               
	P	Not Picked               
	9	Partial Crdt. Issued     
	1	Partial Exchange         
	6	Partial Refused          
	4	Partial Return           
	5	Partial Undeliv          
	O	Point of Sale            
	t	Rdy to Pick-Not Alct     
	Y	Refused Return           
	R	Returned                 
	v	Shipment Stopped         
	V	Shipment Stopped         
	S	Shipped                  
	Q	To Be Canceled If OS     
	H	To Be Drop Shipped       
	A	To Be Drop Shipped       
	T	To Be Picked             
	q	To Cancel-Not Alcd       
	c	To be Qualified          
	X	Tracer Issued            
	I	Undeliverable Return     
	K	Warehouse Backorder      
	NULL	NULL
ASKER CERTIFIED SOLUTION
Avatar of Auric1983
Auric1983Flag of Canada image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers