Update MSAccess table from another Access table using SQL

后端 未结 3 1587
余生分开走
余生分开走 2020-12-11 09:03

I am trying to update table Original with the values in Final. I\'m a newb to SQL, but I have been at this for two hours trying to change various samples to fit my needs. I

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 09:38

    Access is horribly picky. If you fully qualify the name of the field you are updating it may fails. If you don't fully qualify joins tables and fields it may come back with "join not supported". I say may because it's likely slightly different versions will do something different. At least that's my experience.

    So my answer is start with Create->Query Design. Pick the two tables and get the select working correctly. Then modify it to an update query and make the update to of the column(s) you want to update the fields from the table you want to update from.
    Then switch to SQL view and use that as the model to build your query in VBA.

    I had a syntactically correct SQL statement but until I did this and then matched the qualifying vs non-qualified field names EXACTLY it claimed JOIN IS NOT SUPPORTED.

提交回复
热议问题