Thank you. Cut and pasted each one in and got errors on each
for Dcount, just #Error in the control on the form
for Ecount, and error message box that says:
Syntax error (missing operator) in query expression 'AND Attendance = 'A"
I see the single quote, A, double quote at the end of the line...