ArffMarine
Technical User
Let me apologize in advance for the long code but I always see posts that ask for it so I decided to include it from the jump.
Here is my vision:
We have 2 tests that are administered to students at our fire academy, the midblock exam and the end-of-block exam. Each exam has 2 versions to prevent test compromise. These versions are 3341A and 3342B for the midblcok and 3381A and 3382B for the end of block.
At the end of each quarter we analyze the test results to verify the validity of the tests.
There are 13 key sections in the midblock and 9 on the end of block.
We want to use access to store the number of questions missed in each section for each class on each version and have access spit an overall total missed, total students tested, and total missed in each section for the quarter.
I have a form that accepts a date input from the user and runs a query to return the results of all the tests administered during the period specified. I have an aggregate query that runs this code:
SELECT TestAnalysis.MidBlockVersion, Count(TestAnalysis.MidBlockVersion) AS CountOfMidBlockVersion, Sum(TestAnalysis.Mid2) AS SumOfMidNumberofQuestionsMissedInSection2, Sum(TestAnalysis.Mid3) AS SumOfMidNumberofQuestionsMissedInSection3, Sum(TestAnalysis.Mid13) AS SumOfMidNumberofQuestionsMissedInSection4, Sum(TestAnalysis.Mid4) AS SumOfMidNumberofQuestionsMissedInSection5, Sum(TestAnalysis.Mid5) AS SumOfMidNumberofQuestionsMissedInSection6, Sum(TestAnalysis.Mid6) AS SumOfMidNumberofQuestionsMissedInSection7, Sum(TestAnalysis.Mid7) AS SumOfMidNumberofQuestionsMissedInSection8, Sum(TestAnalysis.Mid8) AS SumOfMidNumberofQuestionsMissedInSection9, Sum(TestAnalysis.Mid9) AS SumOfMidNumberofQuestionsMissedInSection10, Sum(TestAnalysis.Mid10) AS SumOfMidNumberofQuestionsMissedInSection11, Sum(TestAnalysis.Mid11) AS SumOfMidNumberofQuestionsMissedInSection12, Sum(TestAnalysis.Mid12) AS SumOfMidNumberofQuestionsMissedInSection13, TestAnalysis.EndBlockVersion
FROM TestAnalysis
GROUP BY TestAnalysis.MidBlockVersion, TestAnalysis.EndBlockVersion, TestAnalysis.MidBlockDate
HAVING ((([TestAnalysis].[DateMidBlocked]) Between [forms]![quarterlytestanalysis]![start] And [forms]![quarterlytestanalysis]![end]))
ORDER BY TestAnalysis.MidBlockVersion, TestAnalysis.EndBlockVersion;
The table structure is
Class# primary key
Midblockversion
MidBlockDate
StudentsTestedatMidBlock
MidNumberofQuestionsMissedInSection1
MidNumberofQuestionsMissedInSection2
and so on til
MidNumberofQuestionsMissedInSection13
The problem is in the date field. Having the date is needed to run the query to retrieve the tests needed for analysis but it prevents the sums and counts from running properly.
Any ideas?
Thanks
Here is my vision:
We have 2 tests that are administered to students at our fire academy, the midblock exam and the end-of-block exam. Each exam has 2 versions to prevent test compromise. These versions are 3341A and 3342B for the midblcok and 3381A and 3382B for the end of block.
At the end of each quarter we analyze the test results to verify the validity of the tests.
There are 13 key sections in the midblock and 9 on the end of block.
We want to use access to store the number of questions missed in each section for each class on each version and have access spit an overall total missed, total students tested, and total missed in each section for the quarter.
I have a form that accepts a date input from the user and runs a query to return the results of all the tests administered during the period specified. I have an aggregate query that runs this code:
SELECT TestAnalysis.MidBlockVersion, Count(TestAnalysis.MidBlockVersion) AS CountOfMidBlockVersion, Sum(TestAnalysis.Mid2) AS SumOfMidNumberofQuestionsMissedInSection2, Sum(TestAnalysis.Mid3) AS SumOfMidNumberofQuestionsMissedInSection3, Sum(TestAnalysis.Mid13) AS SumOfMidNumberofQuestionsMissedInSection4, Sum(TestAnalysis.Mid4) AS SumOfMidNumberofQuestionsMissedInSection5, Sum(TestAnalysis.Mid5) AS SumOfMidNumberofQuestionsMissedInSection6, Sum(TestAnalysis.Mid6) AS SumOfMidNumberofQuestionsMissedInSection7, Sum(TestAnalysis.Mid7) AS SumOfMidNumberofQuestionsMissedInSection8, Sum(TestAnalysis.Mid8) AS SumOfMidNumberofQuestionsMissedInSection9, Sum(TestAnalysis.Mid9) AS SumOfMidNumberofQuestionsMissedInSection10, Sum(TestAnalysis.Mid10) AS SumOfMidNumberofQuestionsMissedInSection11, Sum(TestAnalysis.Mid11) AS SumOfMidNumberofQuestionsMissedInSection12, Sum(TestAnalysis.Mid12) AS SumOfMidNumberofQuestionsMissedInSection13, TestAnalysis.EndBlockVersion
FROM TestAnalysis
GROUP BY TestAnalysis.MidBlockVersion, TestAnalysis.EndBlockVersion, TestAnalysis.MidBlockDate
HAVING ((([TestAnalysis].[DateMidBlocked]) Between [forms]![quarterlytestanalysis]![start] And [forms]![quarterlytestanalysis]![end]))
ORDER BY TestAnalysis.MidBlockVersion, TestAnalysis.EndBlockVersion;
The table structure is
Class# primary key
Midblockversion
MidBlockDate
StudentsTestedatMidBlock
MidNumberofQuestionsMissedInSection1
MidNumberofQuestionsMissedInSection2
and so on til
MidNumberofQuestionsMissedInSection13
The problem is in the date field. Having the date is needed to run the query to retrieve the tests needed for analysis but it prevents the sums and counts from running properly.
Any ideas?
Thanks