MS Access – In a report, How can i count how many different id’s are in the details section?
Wednesday, September 30th, 2009Hello, Ive got a report which contains activities and enrolled clients. A client can enroll in several activities. I have a function to count all attendees for all activities but I need a way to count all different attendees. eg, one attendee may attend 4 activities, i just want the report to count the four as 1. Is this possible? How can this be done? Thanks, Ant…
Use the SELECT DISTINCT sql query and then count the number of records returned.
Example: SELECT DISTINCT COUNT(attendees) as total FROM tblActivities
attendees would be the column that identifies the attendee and tblActivities would be the table where you are storing the info.