E
ESN
Looking for an updatable list of damaged items for which repairs haven't been initiated. The table Damage contains 49 records. The following SQL works to select damage records whose IDs appear in table Repairs (6 records):
SELECT Damage.ItemID, Damage.DamageDescription
FROM Damage
WHERE (((Damage.DamageID) In (SELECT Repairs.DamageID FROM Repairs)));
If I add "not" before "in" within the where clause, I get 0 records. Shouldn't every record be "in" or "not in" the subquery? What gives? Adding table Repairs to the FROM clause with a left join isn't an option, as that will return a non-updatable recordset.
SELECT Damage.ItemID, Damage.DamageDescription
FROM Damage
WHERE (((Damage.DamageID) In (SELECT Repairs.DamageID FROM Repairs)));
If I add "not" before "in" within the where clause, I get 0 records. Shouldn't every record be "in" or "not in" the subquery? What gives? Adding table Repairs to the FROM clause with a left join isn't an option, as that will return a non-updatable recordset.