UPDATE `contacts`
INNER JOIN `contactlocation`
ON `contacts`.`ContactId` = '100'
SET `contacts`.`AgentId` = 'John Doe',
Dim strSQL As string
strSQL = " UPDATE dbo.contacts c "
strSQL = strSQL & " INNER JOIN dbo.contactlocation l ON c.ContactId = l.ContactId "
strSQl = strSQL & " SET c.AgentId = '" & [Forms]![ContactMain]![AgentId] & "'"
strSQL = strSQL & " ,c.ContactId = '" & [Forms]![ContactMain]![ContactId] & "'"
strSQL = strSQL & " ,c.ContactType = '" & [Forms]![ContactMain]![ContactType] & "'"
etc.
How so?The only reason, for using a pass through update queries is because the BE is mysql db, and I am facing problems trying to update the required fields from within access.
For me, the MySQL ODBC configuration requires that the box "all affected rows" be checked. Otherwise I get an error message that "another user has changed the data" and the proposed revisions are cancelled.ODBC tables must have primary keys or unique indexes to allow Access to update them. Permissions can also be an issue if you don't have authorization to update the data. Aside from these two issues, I'm not sure why you would have a problem.
It seems that the mysql config, is the source of all the problems, I am using MYSQL Server 5.x on LAN, so would appreciate it you all could look at the configs, or alternativly provide me with config that works.