More details
Subject reference is a text.
The sql is on the on update event of the drop down box Subject_Reference.
tblScript(CandidateID, SubjectReference, OriginalMark, OriginalGrade) This table contains more stuff but is of not consequence.
tblGradeBoundaries(SubjectReference, a, b, c, d...