I am trying to run a simple delete query and for some reason, can't get it to work. Every time I run it I get Error 3086 - Could not delete from specified tables. Below is the SQL code for the query:-
DELETE DISTINCTROW Processes.*, [Risk Rating of Processes].*, Processes.[Process Number]
FROM (DeleteProcessTemp INNER JOIN Processes ON DeleteProcessTemp.ProcessNumber = Processes.[Process Number]) INNER JOIN [Risk Rating of Processes] ON Processes.[Process Number] = [Risk Rating of Processes].[Process Number]
WHERE (((Processes.[Process Number])=[DeleteProcessTemp]![ProcessNumber]));
I have already built Add and Amend queries in the same database that work fine, but this one has me stumped. Much thanks for any and all assistance offered.
DELETE DISTINCTROW Processes.*, [Risk Rating of Processes].*, Processes.[Process Number]
FROM (DeleteProcessTemp INNER JOIN Processes ON DeleteProcessTemp.ProcessNumber = Processes.[Process Number]) INNER JOIN [Risk Rating of Processes] ON Processes.[Process Number] = [Risk Rating of Processes].[Process Number]
WHERE (((Processes.[Process Number])=[DeleteProcessTemp]![ProcessNumber]));
I have already built Add and Amend queries in the same database that work fine, but this one has me stumped. Much thanks for any and all assistance offered.