Create a table with the correct answers to each question, then do a join query to compare each answer to the "correct table" then you'll have a count of each score, then it's just a matter of doing the math to see who got at least 20 right.
Answers table column:
AnswerID Number Primary Key
TestID Number
PersonID Number
Ans1 Text(1)
thru
Ans25
Query to determine percent correct:
Select
a.TestId, a.PersonID,
Abs((a.Ans1=q.Ans1) +
(a.Ans2=q.Ans2) +
(a.Ans3=q.Ans3) +
.
. insert the remaining expressions here
.
(a.Ans24=q.Ans24) +
(a.Ans25=q.Ans25)) As TotalCorrect,
100.0*TotalCorrect/25.0 As PercentCorrect
From Answers As a Inner Join Questions As q
On a.TestId=q.TestId
Where TestID=[Enter TestID to Summarize] Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.