E
E.Q.
I want to make a report (which I hope to eventually use as a subreport) to
detail training classes employees have taken since they last renewed
licenses. Training only counts if it's occurred after the issue date of the
certificate.
I have four tables that I believe would be relevant, a truncated list follows:
tblTrainingClass:
lngClassID (PK)
chrClassTitle
dtmClassDate
....
tblEmployee:
chrEmpID (PK)
chrLName
chrFName
....
tblTrainee: (an intersection table)
lngClassID (PK)
chrEmpID (PK)
tblCertificate:
lngCertificateID (PK)
chrEmpID (FK)
dtmIssueDate
dtmExpirationDate
....
I would like to grab the earliest issue date (dtmIssueDate) of any
certificate held by an employee (selected using a form) and use that as a
condition limiting which training classes the employee has attended.
(dtmClassDate)
For example, if an employee holds two certificates with the earlier issue
date being Jan 15, 2008. I would like to generate a report showing all
courses taken since that date by that employee.
I'd like to figure this out first, but then, if possible, I'd like for that
report to be a subreport on an existing report detailing info regarding
certificates held by a selected employee. (I've never used subreports, but
I'm hoping that the chrEmpID field would play the parent-child linking role
as it would if I were working with a subform.)
But before I worry about subreports, I need to understand how to get the
MIN(dtmIssueDate) from an employee's records in tblCertificate to select
desired records from tblTrainingClass.
Thank you
EQC
detail training classes employees have taken since they last renewed
licenses. Training only counts if it's occurred after the issue date of the
certificate.
I have four tables that I believe would be relevant, a truncated list follows:
tblTrainingClass:
lngClassID (PK)
chrClassTitle
dtmClassDate
....
tblEmployee:
chrEmpID (PK)
chrLName
chrFName
....
tblTrainee: (an intersection table)
lngClassID (PK)
chrEmpID (PK)
tblCertificate:
lngCertificateID (PK)
chrEmpID (FK)
dtmIssueDate
dtmExpirationDate
....
I would like to grab the earliest issue date (dtmIssueDate) of any
certificate held by an employee (selected using a form) and use that as a
condition limiting which training classes the employee has attended.
(dtmClassDate)
For example, if an employee holds two certificates with the earlier issue
date being Jan 15, 2008. I would like to generate a report showing all
courses taken since that date by that employee.
I'd like to figure this out first, but then, if possible, I'd like for that
report to be a subreport on an existing report detailing info regarding
certificates held by a selected employee. (I've never used subreports, but
I'm hoping that the chrEmpID field would play the parent-child linking role
as it would if I were working with a subform.)
But before I worry about subreports, I need to understand how to get the
MIN(dtmIssueDate) from an employee's records in tblCertificate to select
desired records from tblTrainingClass.
Thank you
EQC