Here's the query. I'm hoping everything else is calculating correctly too.
Let me know if you have any questions about what else is on this report.
SELECT tblcourse.trainer, tblBannerRespondent.coursedate,
tblBannerRespondent.coursenumber, tblcourse.class,
Count(tblBannerRespondent.RespondentNumber) AS CountOfRespondentNumber,
Sum(tblBannerRespondent.Q1stronglyagree) AS SumOfQ1stronglyagree,
Sum(tblBannerRespondent.Q2stronglyagree) AS SumOfQ2stronglyagree,
Sum(tblBannerRespondent.Q3stronglyagree) AS SumOfQ3stronglyagree,
Sum(tblBannerRespondent.Q4stronglyagree) AS SumOfQ4stronglyagree,
Sum(tblBannerRespondent.Q5stronglyagree) AS SumOfQ5stronglyagree,
Sum(tblBannerRespondent.Q1agree) AS SumOfQ1agree,
Sum(tblBannerRespondent.Q2agree) AS SumOfQ2agree,
Sum(tblBannerRespondent.Q3agree) AS SumOfQ3agree,
Sum(tblBannerRespondent.Q4agree) AS SumOfQ4agree,
Sum(tblBannerRespondent.Q5agree) AS SumOfQ5agree,
Sum(tblBannerRespondent.Q1noopinion) AS SumOfQ1noopinion,
Sum(tblBannerRespondent.Q2noopinion) AS SumOfQ2noopinion,
Sum(tblBannerRespondent.Q3noopinion) AS SumOfQ3noopinion,
Sum(tblBannerRespondent.Q4noopinion) AS SumOfQ4noopinion,
Sum(tblBannerRespondent.Q5noopinion) AS SumOfQ5noopinion,
Sum(tblBannerRespondent.Q1disagree) AS SumOfQ1disagree,
Sum(tblBannerRespondent.Q2disagree) AS SumOfQ2disagree,
Sum(tblBannerRespondent.Q3disagree) AS SumOfQ3disagree,
Sum(tblBannerRespondent.Q4disagree) AS SumOfQ4disagree,
Sum(tblBannerRespondent.Q5disagree) AS SumOfQ5disagree,
Sum(tblBannerRespondent.Q1stronglydisagree) AS SumOfQ1stronglydisagree,
Sum(tblBannerRespondent.Q2stronglydisagree) AS SumOfQ2stronglydisagree,
Sum(tblBannerRespondent.Q3stronglydisagree) AS SumOfQ3stronglydisagree,
Sum(tblBannerRespondent.Q4stronglydisagree) AS SumOfQ4stronglydisagree,
Sum(tblBannerRespondent.Q5stronglydisagree) AS SumOfQ5stronglydisagree,
Sum(tblBannerRespondent.Q11stronglyagree) AS SumOfQ11stronglyagree,
Sum(tblBannerRespondent.Q12stronglyagree) AS SumOfQ12stronglyagree,
Sum(tblBannerRespondent.Q13stronglyagree) AS SumOfQ13stronglyagree,
Sum(tblBannerRespondent.Q14stronglyagree) AS SumOfQ14stronglyagree,
Sum(tblBannerRespondent.Q11agree) AS SumOfQ11agree,
Sum(tblBannerRespondent.Q12agree) AS SumOfQ12agree,
Sum(tblBannerRespondent.Q13agree) AS SumOfQ13agree,
Sum(tblBannerRespondent.Q14agree) AS SumOfQ14agree,
Sum(tblBannerRespondent.Q11noopinion) AS SumOfQ11noopinion,
Sum(tblBannerRespondent.Q12noopinion) AS SumOfQ12noopinion,
Sum(tblBannerRespondent.Q13noopinion) AS SumOfQ13noopinion,
Sum(tblBannerRespondent.Q14noopinion) AS SumOfQ14noopinion,
Sum(tblBannerRespondent.Q11disagree) AS SumOfQ11disagree,
Sum(tblBannerRespondent.Q12disagree) AS SumOfQ12disagree,
Sum(tblBannerRespondent.Q13disagree) AS SumOfQ13disagree,
Sum(tblBannerRespondent.Q14disagree) AS SumOfQ14disagree,
Sum(tblBannerRespondent.Q11stronglydisagree) AS SumOfQ11stronglydisagree,
Sum(tblBannerRespondent.Q12stronglydisagree) AS SumOfQ12stronglydisagree,
Sum(tblBannerRespondent.Q13stronglydisagree) AS SumOfQ13stronglydisagree,
Sum(tblBannerRespondent.Q14stronglydisagree) AS SumOfQ14stronglydisagree,
Sum(tblBannerRespondent.Q15excellent) AS SumOfQ15excellent,
Sum(tblBannerRespondent.Q16verygood) AS SumOfQ16verygood,
Sum(tblBannerRespondent.Q17good) AS SumOfQ17good,
Sum(tblBannerRespondent.Q18fair) AS SumOfQ18fair,
Sum(tblBannerRespondent.Q19poor) AS SumOfQ19poor,
Sum(tblBannerRespondent.Q6excellent) AS SumOfQ6excellent,
Sum(tblBannerRespondent.Q7verygood) AS SumOfQ7verygood,
Sum(tblBannerRespondent.Q8good) AS SumOfQ8good,
Sum(tblBannerRespondent.Q9fair) AS SumOfQ9fair,
Sum(tblBannerRespondent.Q10poor) AS SumOfQ10poor
FROM tblcourse INNER JOIN tblBannerRespondent ON (tblcourse.trainer =
tblBannerRespondent.trainer) AND (tblcourse.coursenumber =
tblBannerRespondent.coursenumber) AND (tblcourse.coursedate =
tblBannerRespondent.coursedate)
GROUP BY tblcourse.trainer, tblBannerRespondent.coursedate,
tblBannerRespondent.coursenumber, tblcourse.class
HAVING (((tblcourse.trainer) Like [Trainer Name]) AND
((tblBannerRespondent.coursedate) Between [Beginning Date] And [Ending Date])
AND ((tblBannerRespondent.coursenumber)=[Forms]![ENTER COURSE
NUMBER]![coursenumber]));
Marshall Barton said:
Leave the report aside for now and make sure the query is
axtually calculating the SumOfQ6excellent field correctly.
If you need help with the query, please post a Copy/Paste of
the query's SQL statement.