Would this work?
UPDATE onetable, secondtable SET secondtable.Tel = onetable.tel,
secondtable.Fax = onetable.fax
WHERE (secondtable.ID = 3) AND (onetable.ID = 4)
John W. Vinson said:
Hi
How can I update a record with id = x in one table with another record
with
id = y from a second table?
Thanks
Regards
That's awfully vague, but probably a Subquery will work:
UPDATE onetable
SET [the field you want to update] = (SELECT [the field you want to
update
from] FROM secondtable WHERE id = y)
WHERE id = x;
wow... three guys named John in the same thread...
John Spencer is right, I had a brainfade on that; the subquery will NOT
work.
But your Cartesian join won't work either, since (as far as Access is
concerned) every record in onetable will be paired with every record in
secondtable. The criteria in the WHERE clause won't be enough to allow
updatability.
It would help to know a bit more about the actual situation - are the two
tables related in any way? How is the choice of ID's defined?