Create a query of Counts and name it qryEmployeeReasonCount
SELECT EmployeeName, Count(Reason) AS CountReason
FROM tblEmployeeReason
GROUP BY [EmployeeName & ' ' & Reason, EmployeeName
ORDER BY EmployeeName & ' ' & Reason;
Then take the max from that query by writing a new query referencing that query:
SELECT EmployeeName, Max(CountReason) AS MaxCountReason
FROM qryEmployeeReasonCount
GROUP BY EmployeeName;
This isn't finished as I didn't take the time to pull the reason but should get you pointed in one workable dirction.
Ciao
Jürgen Welz
Edmonton AB Canada
[email protected]