platypus71
Technical User
I have a query that has the following fields:
Name
TestType
Count(tblAnswerKey.QID) AS QsRight
Is it possible to create two new fields, within this query, that are the contents of the 'QsRight' field based on TestType (there are only two test types).
In otherwords, I want pre-QsRight and post-QsRight and if there is no record for one or the other, just leave it blank?
So if the student took only the pre-test, it would show:
Name - pre-QsRight - post-QsRight
John - 10 -
And if they took the post test too, it would show:
John - 10 - 14
And if they only took the post test, it would show:
John - - 14
I know this can be done in another query, but I am hoping to keep it within this one.
Name
TestType
Count(tblAnswerKey.QID) AS QsRight
Is it possible to create two new fields, within this query, that are the contents of the 'QsRight' field based on TestType (there are only two test types).
In otherwords, I want pre-QsRight and post-QsRight and if there is no record for one or the other, just leave it blank?
So if the student took only the pre-test, it would show:
Name - pre-QsRight - post-QsRight
John - 10 -
And if they took the post test too, it would show:
John - 10 - 14
And if they only took the post test, it would show:
John - - 14
I know this can be done in another query, but I am hoping to keep it within this one.