cgmarshall
Technical User
I need to get separate totals: (1) the number of clients who attended a seminar; and (2) the number of people from my company that attended the seminar.
Below is the code I entered into a text box on my Access report. It works until a registrant doesn't attend and a guest does.
The names listed on the report is correct, but the number of clients is not.
The Registrant Attended field is not checked, but it seems it is still counting it.
=Sum(IIf([Company]<>"My Company Name, Inc." Or [Company] Is Null And [Registrant_Attended]=True,1,0))+Sum(IIf([Guest1_Attended]=True,1,0))+Sum(IIf([Guest2_Attended]=True,1,0))
Below is the code I entered into a text box on my Access report. It works until a registrant doesn't attend and a guest does.
The names listed on the report is correct, but the number of clients is not.
The Registrant Attended field is not checked, but it seems it is still counting it.
=Sum(IIf([Company]<>"My Company Name, Inc." Or [Company] Is Null And [Registrant_Attended]=True,1,0))+Sum(IIf([Guest1_Attended]=True,1,0))+Sum(IIf([Guest2_Attended]=True,1,0))