On Wed, 8 Feb 2006 05:21:28 -0800, Eamonn
<(E-Mail Removed)> wrote:
>John,
>SELECT tblReport.ReportID, tblReport.Subject, tblReport.unitCode,
>tblReport.StudentID, tblReport.examgradeconvert AS Expr1, tblReport.examyear,
>tblReport.examterm, tblReport.lettergrade, tblStudent.StudentSurname,
>tblStudent.StudentName, tblStudent.MTG
>FROM tblStudent INNER JOIN (tblReport INNER JOIN tblconvertgrades ON
>tblReport.lettergrade = tblconvertgrades.lettergrade) ON tblStudent.StudentID
>= tblReport.StudentID;
>
>The code from my last attempt is this. What I was try to do was, somehow, to
>end up with number equivalents and then subtract them. I thought that by
>running an appropriate query I would activate the exchange between the grades
>and numbers.
>
>SELECT tblStudent.StudentSurname, tblStudent.StudentName, tblStudent.MTG,
>tblStudent.numericgrade, tblReport.lettergrade, tblReport.numericgrade
>FROM tblStudent INNER JOIN (tblconvertgrades INNER JOIN tblReport ON
>tblconvertgrades.lettergrade=tblReport.lettergrade) ON
>tblStudent.StudentID=tblReport.StudentID;
>
>This is another attempt to activate the exchange.
Let me say it again:
You are taking the wrong approach.
You *DO NOT NEED* to "exchange* the fields. You *DO NOT NEED* to
replace the letter grade with the number grade.
Instead, you link to the number grade table, *and simply use the
number stored in that table* in your calculations.
The field tblReport.numericgrade *SHOULD NOT EXIST*. You don't need
it.
Try
SELECT tblReport.ReportID, tblReport.Subject, tblReport.unitCode,
tblReport.StudentID, tblConvertGrades.numericgrade,
tblReport.examyear, tblReport.examterm, tblReport.lettergrade,
tblStudent.StudentSurname, tblStudent.StudentName, tblStudent.MTG
FROM tblStudent INNER JOIN (tblReport INNER JOIN tblconvertgrades ON
tblReport.lettergrade = tblconvertgrades.lettergrade) ON
tblStudent.StudentID = tblReport.StudentID;
John W. Vinson[MVP]
|