Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

update table from another table in access

I have two tables in access

table1 (name,nat) 16000 records
table2 (v_name,id) 189000 records

I want to update nat in table1 with id from table2. tried the following

UPDATE table1 SET nat = (SELECT table2.ID FROM table2 INNER JOIN table1 ON table2.V_name = table1.Name);

got the following

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

error: Operation must use an updateable query

>Solution :

You can try to use UPDATE .... JOIN in access

UPDATE table1 t1  
INNER JOIN table2 t2
ON t2.V_name = t1.Name
SET t1.nat =  t2.ID
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading