I have a query designed to pull an agent's attendance data. Unfortunately, when I run it the data is always being pulled in triplicate. What is causing this, and how do I stop it?
Thanks!
SQL (Which I don't really understand at all.)
SELECT Agent.[Agent Name], Agent.[Team Manager], [Corrective Action Level].[Update Date], [Corrective Action Level].[Corrective Action Level], Occurrences.[Occurrence Date], Occurrences.[Minutes Missed], Occurrences.[Counted Against], IIf([Counted Against]="Yes",IIf([Minutes Missed]>=240,1,IIf([Minutes Missed]>=180,0.8,IIf([Minutes Missed]>=120,0.6,IIf([Minutes Missed]>=60,0.4,IIf([Minutes Missed]>=5,0.2,0))))),0) AS Occurrences
FROM (Agent INNER JOIN Occurrences ON Agent.[Agent Name] = Occurrences.[Agent Name]) INNER JOIN [Corrective Action Level] ON Agent.[Agent Name] = [Corrective Action Level].[Agent Name]
WHERE (((Agent.[Agent Name])=[Forms]![Attendance Forms].[NavigationSubform].[form]![PullAgentReport]));
![]()