Here's the idea: I have a tblAd, which has a upc field. It has an outer join with tblItemNumber's upc column. A UPC may or may not have an itemnumber, so I used this outer join. In tblItemNumber, there is a field, itemnumberlistID, which tells what user's item number this is. So you see, a upc could have zero or more item numbers, up to any amount, but only ONE PER USER. At first I used:<br>------------------------------<br>... WHERE (dbo.tblItemNumber.itemnumberlistID = @pItemNumberListID OR<br>dbo.tblItemNumber.itemnumberlistID IS NULL)<br><br>------------------------------<br>Only problem is, this doesn't return a row if the tblItemNumber.itemnumberlistID is, say, 3 and the @pItemNumberListID is 1. I was thinking, if I could somehow fit it in like this:<br>------------------------------<br>... WHERE (dbo.tblItemNumber.itemnumberlistID = @pItemNumberListID OR<br>(IF dbo.tblItemNumber.itemnumberlistID NOT NULL AND dbo.tblItemNumber.itemnumberlistID <> @pItemNumberListID<br>BEGIN<br>dbo.tblItemNumber.itemnumber = NULL <br>END)<br>------------------------------<br>I am really frustrated, as you can probably tell. I need it to return the itemnumber field null if the itemnumberlistID isn't a certain value, but I STILL NEED THE REST OF THE ROW!<br><br>please help me...<br><br><whimper> <br><br>