Hey there, when i run this sp_sel_MntInstruments_Sel it ask me for @what and @samplenumber. its there a way to only ask for @samplenumber when @what = 'samplenumber'? thanks.create procedure sp_sel_MntInstruments_Sel @what as varchar(15),@samplenumber as bigintasbegin if @what = 'subdept' select deptid, subdeptid, description from MstSubDept with(nolock) where deptid = 2 order by description if @what = 'instrument' select InstrumentId, dbo.fn_ProperCase(InstrumentName) as "InstrumentName" from MstLabInstrument with(nolock) order by InstrumentId if @what = 'samplenumber' select a.SampleNumber, a.InstrumentId , a.CdmDesc , a.FirstName +' '+ a.MiddleName +' '+ a.LastName1 + ' '+ a.LastName2 from AppLabSenderQueueHST a with(nolock) where a.SampleNumber = @samplenumberend