kmccoy1970
Technical User
Hi there:
I'm trying to create a history report where I show all of the classes a user has taken. There will be times when they will duplicate the training because we have to take some classes every X months.
When someone has taken 2 or more of the same class, on the LAST class that they took, I want to reflect the NEXT date the class is required by. So if a class has a 24mth frequency and they took the class in 3/25/09, I want to show a future class of 3/25/11 (i don't care about weekends at this point!)But I still want to retain the other classes that they've taken in the past.
I've created a history query:
SELECT qryAllEmployeeHistory.CategoryName, qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.CompletedDate, qryAllEmployeeHistory.TrainingFrequency, qryAllEmployeeHistory.IsMandatory
FROM qryFindLastTrainingDate INNER JOIN qryAllEmployeeHistory ON qryFindLastTrainingDate.TrainingID = qryAllEmployeeHistory.TrainingID
WHERE (((qryAllEmployeeHistory.Employee)=[forms]![frmTraining by Employee]![Employee]));
and I've create a query that will show me the LAST date a class was taken:
SELECT Last(qryAllEmployeeHistory.CompletedDate) AS Maxdate, qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.TrainingID
FROM qryAllEmployeeHistory
GROUP BY qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.TrainingID;
and I can't get it to populate a text field that I have set aside in the report to house the future date.
Frustrating, because separately, these queries work off the same parent query, but when I combine the two, it's FUBAR...grrrr
Anyone with some insight as to how I tackle this?
Thanks a bunch...
Katy
I'm trying to create a history report where I show all of the classes a user has taken. There will be times when they will duplicate the training because we have to take some classes every X months.
When someone has taken 2 or more of the same class, on the LAST class that they took, I want to reflect the NEXT date the class is required by. So if a class has a 24mth frequency and they took the class in 3/25/09, I want to show a future class of 3/25/11 (i don't care about weekends at this point!)But I still want to retain the other classes that they've taken in the past.
I've created a history query:
SELECT qryAllEmployeeHistory.CategoryName, qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.CompletedDate, qryAllEmployeeHistory.TrainingFrequency, qryAllEmployeeHistory.IsMandatory
FROM qryFindLastTrainingDate INNER JOIN qryAllEmployeeHistory ON qryFindLastTrainingDate.TrainingID = qryAllEmployeeHistory.TrainingID
WHERE (((qryAllEmployeeHistory.Employee)=[forms]![frmTraining by Employee]![Employee]));
and I've create a query that will show me the LAST date a class was taken:
SELECT Last(qryAllEmployeeHistory.CompletedDate) AS Maxdate, qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.TrainingID
FROM qryAllEmployeeHistory
GROUP BY qryAllEmployeeHistory.[Employee ID], qryAllEmployeeHistory.Employee, qryAllEmployeeHistory.TrainingName, qryAllEmployeeHistory.TrainingID;
and I can't get it to populate a text field that I have set aside in the report to house the future date.
Frustrating, because separately, these queries work off the same parent query, but when I combine the two, it's FUBAR...grrrr
Anyone with some insight as to how I tackle this?
Thanks a bunch...
Katy