Kouga
asked on
Query Formula - Awarding Grades
Well, my question is an important one but it should be easy for some to answer with advanced experience of MS Access:
The general aim of my case study is to produce a database which manages the re-marking of examination scripts.
I have two tables; One with candidate and the other with subject information (which includes grade boundaries).
With a query, I would like to link these tables so that I can produce a number of results that the case study requires of me.
---
What formula would you suggest I use if I wanted a field to produce the "grade" (e.g. A,B,C) using the information of "mark" and "maxmark"?
Thank you for reading my question. :-)
The general aim of my case study is to produce a database which manages the re-marking of examination scripts.
I have two tables; One with candidate and the other with subject information (which includes grade boundaries).
With a query, I would like to link these tables so that I can produce a number of results that the case study requires of me.
---
What formula would you suggest I use if I wanted a field to produce the "grade" (e.g. A,B,C) using the information of "mark" and "maxmark"?
Thank you for reading my question. :-)
What is the structure of your tables ?
Fieldnames would be nice at least. But Just make a query and add tyge to tables and make a link between the equal fields. (pull the id field over to the eqiuvalent in the other table) Then add your selected output fields.(doubleclick)
// j
// j
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The field names are:
candidate table: TBL1-CANDIDATE DETAILS
candidate_no
candidate_surname
candidate_forename
centre_no
sub_ref_no
original_mark
remark_mark
request
date
subject table: TBL2-SUBJECT DETAILS
sub_ref_no
sub_name
maxmark
a
b
c
d
e
----
I want to produce a double IF statement to calculate the students grade in a query. Is this is enough information for you to help? :)
candidate table: TBL1-CANDIDATE DETAILS
candidate_no
candidate_surname
candidate_forename
centre_no
sub_ref_no
original_mark
remark_mark
request
date
subject table: TBL2-SUBJECT DETAILS
sub_ref_no
sub_name
maxmark
a
b
c
d
e
----
I want to produce a double IF statement to calculate the students grade in a query. Is this is enough information for you to help? :)
For show all cases:
SELECT candidate.candidate, subjectinfo.subject
FROM candidate, subjectinfo;
For number of cases:
SELECT Count(*)
FROM candidate, subjectinfo;
Hope can help..
SELECT candidate.candidate, subjectinfo.subject
FROM candidate, subjectinfo;
For number of cases:
SELECT Count(*)
FROM candidate, subjectinfo;
Hope can help..
ASKER
Well, I fixed it myself. I worked at the 'percentage' first and used the statement:
new grade: IIf([percentage]>=[a],"A", IIf([perce ntage]>=[b ],"B",IIf( [percentag e]>=[c],"C ",IIf([per centage]>= [d],"D",II f([percent age]>=[e], "E",IIf([p ercentage] <[e],"U")) ))))
new grade: IIf([percentage]>=[a],"A",
Isn't that basically exactly what I posted?
Hi Kouga,
This question has been abandoned and needs to be finalized (103 days since last comment).
You can accept an answer, split the points, or get a refund. Go to
http://www.cityofangels.com/Experts/Closing.htm for information and options.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
nexusnation
EE Cleanup Volunteer for Microsoft Access
This question has been abandoned and needs to be finalized (103 days since last comment).
You can accept an answer, split the points, or get a refund. Go to
http://www.cityofangels.com/Experts/Closing.htm for information and options.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
nexusnation
EE Cleanup Volunteer for Microsoft Access
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, points to Hummusx
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
1William
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept question, points to Hummusx
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
1William
EE Cleanup Volunteer