A family of Microsoft relational database management systems designed for ease of use.
Nope you did NOT follow my instructions. This is from my post on 1/3:
However, there is a work around.
What I would do is create a table to be used temporarily to store the data used for the crosstab.
You will then need to expand the code behind your Generate Report button:
Dim strSQL as String
strSQL = "DELETE * FROM tmpProgress;"
CurrentDB.Execute strSQL, dbFailOnError
strSQL = "INSERT INTO tmpProgress (CenterCode, StudentID, GradeScore, CourseName) " & _
"SELECT CenterCode, StudentID, GradeScore, CourseName " & _
"FROM qryStudentProgress_FIRST_SIMPLE_QUERY;"
CurrentDB.Execute strSQL, dbFailOnError
You need to create the Temp table as I described. You need to populate that table using the code shown above. You also need to create a new crosstab query based on the Temp table and then use that to create a table that can be used as the Recordsource of your report.
So the process steps are:
- delete all the records from the temp table
- populate the temp table with the records filtered for the Center Code and Month
- Run the report which will be based on a query that reads from the NEW crosstab query (based on the temp table)