I have a combobox with 3 values: All, Failed, Completed.
All
Failed
Completed
ALL: load All rows and no condition. Failed and
ALL
DECLARE @status varchar(15) --set the status SELECT * FROM tbl_Location WHERE Status = @status OR @status = 'ALL'