In Access 2007, I have the following:
-- tblEmployees; employee data with EmplNum as PK
-- qryActiveEmpl; returns all data from tblEmployees for all active employees
-- tblTraining; a list of all training classes with ClassName as PK
-- tblAllTrn joins tblEmployees and tblTraining as many-to-many using EmplNum and ClassName both as fk, and includes the dates any employee completed any training class
-- qryTrn2012; draws from tblEmployees and tblAllTrn, & shows the dates all employees completed any training in 2012
-- frmEmplData; record source is qryActiveEmpl
I want to put text boxes on my form for each individual training class and show the date completed. (A subform does show the correct results, but for various reasons is not preferred *if* this other way can be made to work). So -- for each employee shown on the form, I want to pull the date from qryTrn2012 that shows the date that person completed that class, or a Null if no date present.
I can't seem to make it happen! I even went so far as to build separate queries for each of the 17 classes. But I can't get the date to show up in the text box.
Can someone please drop-kick me in the right direction?
Ed
-- tblEmployees; employee data with EmplNum as PK
-- qryActiveEmpl; returns all data from tblEmployees for all active employees
-- tblTraining; a list of all training classes with ClassName as PK
-- tblAllTrn joins tblEmployees and tblTraining as many-to-many using EmplNum and ClassName both as fk, and includes the dates any employee completed any training class
-- qryTrn2012; draws from tblEmployees and tblAllTrn, & shows the dates all employees completed any training in 2012
-- frmEmplData; record source is qryActiveEmpl
I want to put text boxes on my form for each individual training class and show the date completed. (A subform does show the correct results, but for various reasons is not preferred *if* this other way can be made to work). So -- for each employee shown on the form, I want to pull the date from qryTrn2012 that shows the date that person completed that class, or a Null if no date present.
I can't seem to make it happen! I even went so far as to build separate queries for each of the 17 classes. But I can't get the date to show up in the text box.
Can someone please drop-kick me in the right direction?
Ed