MS Access updating linked table producing invalid argument error

廉价感情. 提交于 2019-12-13 05:22:38

问题


I am trying to update a linked table in SQL Server through MS Access and I am getting an Invalid argument error. Does anyone know how to fix this error?

UPDATE 1

This is the call I am making and it is failing:

sql = "UPDATE user INNER JOIN myusers ON user.userid = myuser.UserId SET myuser.division= user.division;" CurrentProject.Connection.Execute sql, , adExecuteNoRecords

UPDATE 2

I converted the linked table to be local and applied the same update and the update was successful. I think this is due to the ODBC connection, may be someone can enlighten me on this.


回答1:


It happens that it was a PK issue. The linked table had a PK that was causing problems.



来源:https://stackoverflow.com/questions/18214694/ms-access-updating-linked-table-producing-invalid-argument-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!