I have a list of certifications that include several incidents of two different versions of the same thing, for example
BLS for Healthcare Providers and
BLS for Healthcare Provider Renewal.
My problem is that I want the last item of those two displayed. I have gotten the process set up to give me just the last of each of the items, but don’t know how to limit just the one of those two. For example I get the BLS for Healthcare Provider 2003 date and the BLS for Healthcare Provider Renewal 2005 date. Here are the steps and SQL from the query grids.
qryWhoCert1
SELECT tblCombinedCertsDidDidnt.LearnerID, tblCombinedCertsDidDidnt.ClassName, tblCombinedCertsDidDidnt.ClassNumber, tblCombinedCertsDidDidnt.ClassID, tblCombinedCertsDidDidnt.DateOfClassStart, tblCombinedCertsDidDidnt.Due
FROM tblCombinedCertsDidDidnt;
qryWhoCert2
SELECT qryWhoCert1.LearnerID, Max(qryWhoCert1.DateOfClassStart) AS MaxOfDateOfClassStart, qryWhoCert1.ClassName
FROM qryWhoCert1
GROUP BY qryWhoCert1.LearnerID, qryWhoCert1.ClassName;
qryWhoCert3
SELECT qryWhoCert1.LearnerID, qryWhoCert1.ClassName, qryWhoCert1.ClassNumber, qryWhoCert1.ClassID, qryWhoCert2.MaxOfDateOfClassStart, qryWhoCert1.DateOfClassStart, qryWhoCert1.Due
FROM qryWhoCert2 INNER JOIN qryWhoCert1 ON (qryWhoCert2.LearnerID = qryWhoCert1.LearnerID) AND (qryWhoCert2.ClassName = qryWhoCert1.ClassName);
Thank you.
Fay