Hey guys, I've had a wee search but I can't find code that seems to work in my situation. I'm trying to update my temp table with the Advisor ID from matching records in my advisor table. What's the problem with this?
Code:
UPDATE [TempTable-SovImport] SET [TempTable-SovImport].AdvisorID = (SELECT AdvisorID
FROM Advisors
WHERE (([Advisors]![FirstName]) = ([TempTable-SovImport]![AgentName])) AND (([Advisors]![LastName]) = ([TempTable-SovImport]![AdvisorLastName])));