
Originally Posted by
June7
So you are doing 3 crosstabs on the 3 score tables - join those 3 crosstabs to the Student table. Set each join so that will "Include all records from Student and only those from ..."
Yes, crosstabs are dynamic for the columns. Review:
http://allenbrowne.com/ser-67.html
But what if a user add more quizzes? Let say students have 4 quizzes in WrittenWorks (the Query1), therefore I will have 4 columns for scores in CrossTab. But the query below will show only 3 columns for WrittenScores.
Code:
SELECT Student.StudentName, Query1.[1], Query1.[2], Query1.[3], Query2.[1], Query2.[2], Query2.[3], Query3.[1]
FROM ((Student LEFT JOIN Query1 ON STUDENT.STUDENTNAME = QUERY1.STUDENTNAME) LEFT JOIN Query2 ON STUDENT.STUDENTNAME = QUERY2.STUDENTNAME)LEFT JOIN Query3 ON STUDENT.STUDENTNAME = QUERY3.STUDENTNAME;