MS Access updating linked table producing invalid

2019-08-21 07: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.