I am trying to update a table using records from the same table and another table but MS ACCESS says my SQL is wrong. I can't understand where the error is, to me it looks ok:
UPDATE Clients AS T1
INNER JOIN
(SELECT DISTINCT
Clients.ID_Client AS FED,
Clients.Name,
SecondTable.Client_Name,
SecondTable.ABI_Code AS ABI
FROM SecondTable INNER JOIN Clients ON SecondTable.FieldToUpdate=Clients.Name) AS T2
SET T1.FieldToUpdate = T2.FED
WHERE T1.ABI_Code =T2.ABI
It says "Syntax Error" in the Update query and the cursor is on the SET instruction-