I am attempting to develop a cross tab query that limits the years to a parameter that is stored in a form. Currently, the query creates a column for every year in the table. I am not quite sure how to proceed as the query does not recognize the form reference. Thanks for a push in the right direction. Here is the SQL
Code:
TRANSFORM Nz(Sum(TeacherResources.TeacherFTE),0) AS SumOfTeacherFTE
SELECT TeacherResources.trschool_id, Sum(TeacherResources.TeacherFTE) AS [Total Of TeacherFTE]
FROM TeacherResources
GROUP BY TeacherResources.trschool_id
PIVOT TeacherResources.tryear;