Thanks,Bill
I'll try the sproc without the LIKE...I suppose an IF block may work better.
The code column is indexed. Only one code would be passed if the user wanted the list limited.
Thanks for you attention on this, Greg. Much appreciated.
Bill
Who woulda thunk it?!?!?!
I have removed the LIKE and have followed another approach:
IF @itemcode = '' BEGIN 'run script without the Items.Code filter ENDELSE BEGIN 'run the script with the Items.Code = 'MyCode' ENDThanks, again, Greg!!Bill