V
Vayse
I have an Access table, NewExamHeader.
Fields as follows:
HeadRef: Primary Key
Ident_No: String to Identify the Student
Exam_Yr: The year, e.g. 2005
Exam_Mt: Exam month - string, e.g. "05", "09"
Exam_Lvl: Exam Level - a string. e.g. "LAW1", "PHY3"
Now, I wish to get the date of when a student last sat an exam, so I
created a group query as below.
SELECT NewExamHeader.IDENT_NO, Max([EXAM_YR] & [EXAM_MT]) AS ExamDate
FROM NewExamHeader
WHERE (((NewExamHeader.ExamSit)=True))
GROUP BY NewExamHeader.IDENT_NO
ORDER BY NewExamHeader.IDENT_NO, Max([EXAM_YR] & [EXAM_MT]) DESC;
How should I change the statement to also include the Exam_Lvl of the last
sitting?
Thanks
Vayse
Fields as follows:
HeadRef: Primary Key
Ident_No: String to Identify the Student
Exam_Yr: The year, e.g. 2005
Exam_Mt: Exam month - string, e.g. "05", "09"
Exam_Lvl: Exam Level - a string. e.g. "LAW1", "PHY3"
Now, I wish to get the date of when a student last sat an exam, so I
created a group query as below.
SELECT NewExamHeader.IDENT_NO, Max([EXAM_YR] & [EXAM_MT]) AS ExamDate
FROM NewExamHeader
WHERE (((NewExamHeader.ExamSit)=True))
GROUP BY NewExamHeader.IDENT_NO
ORDER BY NewExamHeader.IDENT_NO, Max([EXAM_YR] & [EXAM_MT]) DESC;
How should I change the statement to also include the Exam_Lvl of the last
sitting?
Thanks
Vayse