I don't understand why this doesn't work. It doesn't like the IS NULL and IS NOT NULL in the Case statement. I know it shouldn't be DateResolved = IS NULL which doesn't make any sense. What's a better way of doing this? Thanks CREATE PROCEDURE p_MyPCAComplaints @UserID varchar(50) = NULL ,@DateResolved int = NULLASBEGIN SET NOCOUNT ON; SELECT ComplaintID ,DateReceived ,BorrowerNumber ,BorrowerName ,DueDate ,DateResolved FROM PCAComplaints WHERE UserID = @UserID AND DateResolved = CASE WHEN @DateResolved = 1 THEN IS NOT NULL WHEN @DateResolved = 0 THEN IS NULL ELSE IS NULL END