SELECT Attendance.Event, Attendance.Date, Sum(IIf([Name]="tnaril",1,0)) AS Attended
FROM Attendance RIGHT JOIN [Event List] ON Attendance.Event=[Event List].Event
GROUP BY Attendance.Event, Attendance.Date;
I got this working in MS Access. Basically it compares the Event_List.event row, to the Attendance.event row. Filtered by Attendance.name. It puts a 1 if rows match and a 0 if they dont. It works great in MS Access just when I transfered the tables to MYSQL I cant get it to work in PHPMyadmin.