D
DubboPete
Hi all,
Irun a query to build a temporary table of staff who have completed a
training course in the last 12 months. Some people have done this
course twice in that period. Can someone advise how to alter the
code below so that is only shows the most recent date entry per
person?
code:
SELECT TblTraining.ID, TblTraining.EmployeeNumber,
TblTraining.SURNAME, TblTraining.[FIRST NAME], TblTraining.COURSECODE,
TblTraining.SERVICE_UNIT, TblTraining.COURSE, TblTraining.COURSEDATE,
TblTraining.STATUS, TblTraining.HOURS, TblTraining.TRAINER,
TblTraining.CostCentre, TblTraining.Cluster INTO TblTempTraining
FROM TblTraining
WHERE (((TblTraining.COURSECODE)=[forms]![frmEdreports]![Combo10]));
Many thanks in anticipation
DubboPete
Irun a query to build a temporary table of staff who have completed a
training course in the last 12 months. Some people have done this
course twice in that period. Can someone advise how to alter the
code below so that is only shows the most recent date entry per
person?
code:
SELECT TblTraining.ID, TblTraining.EmployeeNumber,
TblTraining.SURNAME, TblTraining.[FIRST NAME], TblTraining.COURSECODE,
TblTraining.SERVICE_UNIT, TblTraining.COURSE, TblTraining.COURSEDATE,
TblTraining.STATUS, TblTraining.HOURS, TblTraining.TRAINER,
TblTraining.CostCentre, TblTraining.Cluster INTO TblTempTraining
FROM TblTraining
WHERE (((TblTraining.COURSECODE)=[forms]![frmEdreports]![Combo10]));
Many thanks in anticipation
DubboPete