I am trying to run the following SQL query in access VBA and I am getting a join error.
I can't seem to figure out what the problem is. I'm sure there's something obvious I am just overlooking.
SELECT a.LateDate, a.LateAgent, a.LateTime, b.PBXID,
(b.FirstName + ' ' + b.Surname) as FullName
from tblLateLog a
INNER Join tblAgents b on a.LateAgent = FullName
ON a.LateAgent = (b.FirstName + ' ' + b.Surname).