Thanks for your input, Scott. I'll post up my code; see if you can identify any errors in it.
DELETE [MasterFileEdit].[OID], [MasterFileEdit].[SystemLoc], [MasterFileEdit].[SystemPN], [MasterFileEdit].[Location], [MasterFileEdit].[Part_Number], [MasterFileEdit].[Qty], [MasterFileEdit].[Date_n_Time], [MasterFileEdit].[NewLoc], [MasterFileEdit].[RecheckLocation], [MasterFileEdit].[RecheckPart], [MasterFileEdit].[oddeven], [MasterFileEdit].[Auditor], [MasterFileEdit].[upperlower], [MasterFileEdit].[area], [MasterFileEdit].[aisle], [MasterFileEdit].[section]
FROM MasterFileEdit
WHERE MasterFileEdit.SystemPN IN (Select * From [Location Initial Audit]);
Location Initial Audit is the table that the records are originally appended to. I'd like to take the records in that table and delete them from the Masterfile.
It keeps giving me the following error when I try and run the query:
'You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query's FROM clause. Revise the SELECT statement of the subquery to request only one field.'
Thanks,
Matt
DELETE [MasterFileEdit].[OID], [MasterFileEdit].[SystemLoc], [MasterFileEdit].[SystemPN], [MasterFileEdit].[Location], [MasterFileEdit].[Part_Number], [MasterFileEdit].[Qty], [MasterFileEdit].[Date_n_Time], [MasterFileEdit].[NewLoc], [MasterFileEdit].[RecheckLocation], [MasterFileEdit].[RecheckPart], [MasterFileEdit].[oddeven], [MasterFileEdit].[Auditor], [MasterFileEdit].[upperlower], [MasterFileEdit].[area], [MasterFileEdit].[aisle], [MasterFileEdit].[section]
FROM MasterFileEdit
WHERE MasterFileEdit.SystemPN IN (Select * From [Location Initial Audit]);
Location Initial Audit is the table that the records are originally appended to. I'd like to take the records in that table and delete them from the Masterfile.
It keeps giving me the following error when I try and run the query:
'You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query's FROM clause. Revise the SELECT statement of the subquery to request only one field.'
Thanks,
Matt