I have two tables, a repairdata table that has a field for statusID and a status table that has an autonumber statusID and a status. I'm trying to create a query that shows all entries from repairdata where the status isn't equal to "shpd" or "comp". The problem is that if I specify any condition, it will also not show entries where there is no status listed at all. Here is my SQL code for the query. I'm pretty sure you can ignore the products table join.
Code:
SELECT repairdata.ProductID, Products.Description, repairdata.CustomerSerial, repairdata.ITTSerial, status.Status, repairdata.StatusDate, repairdata.Comments, repairdata.LocationID
FROM Products INNER JOIN (status right JOIN repairdata on status.statusid=repairdata.statusid) ON Products.ProductID = repairdata.ProductID
where status.status<>"shpd" and status.status <>"comp"