HLRosenberger
asked on
MS access and Update/Select
How can I do something like below in MS access, where I'm updating a record in the equipment table based on a related record in th e same equipment table.
update equipment set local_indicator_id = (select local_id from equipment where id = 8309)
where equipment.id = 8265
update equipment set local_indicator_id = (select local_id from equipment where id = 8309)
where equipment.id = 8265
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Create a table u(f, t) with entries from id to id
f t
8265 8309
------ ------
UPDATE equipment inner join u on equipment .local_indicator_id=u.f
set equipment .local_indicator_id =u.t