I have a statement
... where (vend_id in (@vendor)or @vendor ='')
and (name in (@Name) or @Name ='')
so a user can search using either vendor or name. But when i add multiple values to vendor i get this error
(An expression of non-boolean type specified in a context where condition is expected, near',' )
Now I can change the statement to (vend_id in (@vendor) and (name in (@Name) or @Name ='') but the user will have to choose vendor all the time. But thats not what I need.
So any ideas on how I can chose multiple values for vendor?