Hello, I have two tables. One is a main table with a Primary key (001_SMCO...) other is a table container records I want to delete (P04...). In order to better see my issue, I'm posting the SQL view:
DELETE DISTINCTROW [P04_MasterRecord_EOL ALERTS_comp info].*
FROM [P04_MasterRecord_EOL ALERTS_comp info] INNER JOIN [001 SMCO_INITIATION] ON ([P04_MasterRecord_EOL ALERTS_comp info].MPN = [001 SMCO_INITIATION].MPN) AND ([P04_MasterRecord_EOL ALERTS_comp info].[ROK PN] = [001 SMCO_INITIATION].[RA PN]) AND ([P04_MasterRecord_EOL ALERTS_comp info].[Supplier PN] = [001 SMCO_INITIATION].[SUPPLIER PN]) AND ([P04_MasterRecord_EOL ALERTS_comp info].Supplier = [001 SMCO_INITIATION].SUPPLIER)
WHERE ((([P04_MasterRecord_EOL ALERTS_comp info].[RANDOM ID]) Is Not Null));
Basically, I'm trying to delete records in P04 table that matches specific records in 001_SMCO table. Can anyone tell me what I'm doing wrong?
DELETE DISTINCTROW [P04_MasterRecord_EOL ALERTS_comp info].*
FROM [P04_MasterRecord_EOL ALERTS_comp info] INNER JOIN [001 SMCO_INITIATION] ON ([P04_MasterRecord_EOL ALERTS_comp info].MPN = [001 SMCO_INITIATION].MPN) AND ([P04_MasterRecord_EOL ALERTS_comp info].[ROK PN] = [001 SMCO_INITIATION].[RA PN]) AND ([P04_MasterRecord_EOL ALERTS_comp info].[Supplier PN] = [001 SMCO_INITIATION].[SUPPLIER PN]) AND ([P04_MasterRecord_EOL ALERTS_comp info].Supplier = [001 SMCO_INITIATION].SUPPLIER)
WHERE ((([P04_MasterRecord_EOL ALERTS_comp info].[RANDOM ID]) Is Not Null));
Basically, I'm trying to delete records in P04 table that matches specific records in 001_SMCO table. Can anyone tell me what I'm doing wrong?