Perhaps a subquery would do the trick:
DELETE FROM [Daily Check]
WHERE EXISTS
(SELECT policy
FROM Retention
WHERE Retention.Policy = [Daily Check].policy);
If subqueries are new, see:
http://allenbrowne.com/subquery-01.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Chris Stammers" <(E-Mail Removed)> wrote in message
news:F33C1A17-71B2-4C80-B216-(E-Mail Removed)...
> Hello,
>
> I have a query to delete records that match from the 2 tables contained.
> When I view the result of the query before running, it looks like it is
> going
> to work however when I actually come to run it, I get the error 'Could Not
> Delete From Specified Tables'. After reading the Help pages, I unchecked
> the
> box 'Open Databases using record-level locking' from the Advanced Options
> tab
> and this hasn't helped. Is it the case that I will need to close Access
> for
> the tables to update before the query will run properly? Here is the SQL:
> DELETE Retention.*, [Daily Check].policy, [Daily Check].[extracted on] AS
> Expr1
> FROM [Daily Check] INNER JOIN Retention ON [Daily Check].policy =
> Retention.POLICY;
>
> Many thanks.
> Chris