Somedy told me the solution:
UPDATE DataTable INNER JOIN DataSumTable
ON DataTable.[Date] = DataSumTable.[Date] AND DataTable.A_Name = DataSumTable.A_Name
SET DataTable.SumHours = DataSumTable.SumHours
Hi!
I ve got two tables in Access 2007.
I want to update a field of DataTable from another table, DataSumTable when two of their fields equals.
( the fields : Name and Period)
I tried this sql code:
UPDATE DataTable
SET DataTable.SumHours =
( SELECT DataSumTable.SumHours
FROM...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.