Update table in access by joining a table from sql server -


i using access , sql server combined. main tables housed in sql server, , temp tables created in access. trying update temp table in access joining table sql server. keep getting error, operation must use updateable query. here query below. appreciated.

update [tmpediterrcode220 - 2] inner join dbo_indicator_0 on ([tmpediterrcode220 - 2].cpt_code_allow = dbo_indicator_0.cpt_code_allow) , ([tmpediterrcode220 - 2].cpt_code_omit = dbo_indicator_0.cpt_code_omit) set [tmpediterrcode220 - 2].flag = on ((([tmpediterrcode220 - 2].flag)=off)); 

try this

update dbo_indicator_0  inner join  [tmpediterrcode220 - 2] on ([dbo_indicator_0].cpt_code_omit = [tmpediterrcode220 - 2].cpt_code_omit) , ([dbo_indicator_0].cpt_code_allow = [tmpediterrcode220 - 2].cpt_code_allow)  set [tmpediterrcode220 - 2].flag = "on" ((([tmpediterrcode220 - 2].flag)="off")); 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -