So far I have a query that looks like this:
SELECT tblAppointment.Term, tblAdvisingCode.AdvisingCode, Sum([Duration])/60 AS [Number of Contact Hours], Count(tblAppointment.AID) AS [Number of Contacts], Count(tblAppointment.SID) AS CountOfSID
FROM tblAppointment INNER JOIN tblAdvisingCode ON tblAppointment.AID = tblAdvisingCode.AID
WHERE (((tblAppointment.Term)=[Which semester? eg SP03]))
GROUP BY tblAppointment.Term, tblAdvisingCode.AdvisingCode;
This gives me each advising code, the number of contact hours for each code. What I need is a number of how many unique participants had an appt with that code. For instance, I have 22 academic advising contacts, but there should only be 18 participants (these are in [SID]), some had more than one academic advising contact. How do I get it to count just the distinct values. I tried turning on unique values and that didn’t work. I’ve tried count, tried select distinct. Help! This is making me crazy!