If I understand correctly, you say that when you delete the contents of TblPartsTracking before running this code, nothing happens?
Well, your SQL contains an INNER JOIN between TblParts and TblPartsTracking, so if you delete the contents of TblPartsTracking, your SQL will automatically return...