Can someone tell me what is wrong with the following query which I'm running from Access connected to SQL B/E:
UPDATE [Phone Users] INNER JOIN tblTempMismatches ON [Phone Users].EmployeeID = tblTempMismatches.EmployeeID SET [Phone Users].CostCentre = [RemoteCostCentre]
WHERE (((tblTempMismatches.ImportLogNumber )= 83) AND ((tblTempMismatches.StatusTypeDecode)=2))
I'm using ADO execute statement which has worked fine before and I'm getting error:
"Incorrect syntax near keyword 'INNER'"
Any ideas?
UPDATE [Phone Users] INNER JOIN tblTempMismatches ON [Phone Users].EmployeeID = tblTempMismatches.EmployeeID SET [Phone Users].CostCentre = [RemoteCostCentre]
WHERE (((tblTempMismatches.ImportLogNumber )= 83) AND ((tblTempMismatches.StatusTypeDecode)=2))
I'm using ADO execute statement which has worked fine before and I'm getting error:
"Incorrect syntax near keyword 'INNER'"
Any ideas?