I need to delete info in tblshipmentdata_working that matches 2 fields (Plant and Code) in LITOSD.
for example, I have in LITOSD a row with Plant = 203 and Code = PD1.
When I run the delete query, it's pulling Plant = 201 and Code = PD1 from tblshipmentdata_working to delete. It looks like it's totally ignoring my code to match on both plant and code.
DELETE*
FROM tblshipmentdata_working
WHERE (((tblshipmentdata_working.Code) In (SELECT LITOSD.Code FROM LITOSD)) AND ((tblshipmentdata_working.Plant) In (SELECT LITOSD.Plant FROM LITOSD)) AND ((tblshipmentdata_working.Active)=-1));
for example, I have in LITOSD a row with Plant = 203 and Code = PD1.
When I run the delete query, it's pulling Plant = 201 and Code = PD1 from tblshipmentdata_working to delete. It looks like it's totally ignoring my code to match on both plant and code.
DELETE*
FROM tblshipmentdata_working
WHERE (((tblshipmentdata_working.Code) In (SELECT LITOSD.Code FROM LITOSD)) AND ((tblshipmentdata_working.Plant) In (SELECT LITOSD.Plant FROM LITOSD)) AND ((tblshipmentdata_working.Active)=-1));