Not sure if its a dynamic query i need or not. I need to track training for personnel. Each person belongs to a different department and each department has different training requirements. I have the personnel table, a training list table that list classes required, a table that has personnel positions (each department may have certain people in a position that require specialized training that no one else needs.) Master training table that hold the personnel id# and all the classes needed by the whole company. Some fields in the master table will be blank due to not all personnel needing them.
I have made a junction table that holds the department, training class required, and position that requires that training.
What i am trying to do is make a query or vba code that would allow me to mark the required training fields in the master training table based off the junction table for each department and position.
the junction table has: dept, training, personnel req.
example: admin, printer training, all
example: admin, supervisor training, supervisors
I want to add/update the required training using the personnel table and the junction table. (maybe not the best way?)
So all personnel in the admin department require printer training, and the supervisors also require supervisor training. I want to be able to cycle through the personnel table looking for everyone in the admin dept and mark printer training in the master training table as required and if they are a supervisor I want to mark supervisor training field.
Clear as mud right? The reason its dynamic is, next year the required training could change. So the junction table could change. If i hard code to the junction fields each year i would have to change the code.
If this is not the right direction, what is the best direction.
Thanks for any help!!!
I have made a junction table that holds the department, training class required, and position that requires that training.
What i am trying to do is make a query or vba code that would allow me to mark the required training fields in the master training table based off the junction table for each department and position.
the junction table has: dept, training, personnel req.
example: admin, printer training, all
example: admin, supervisor training, supervisors
I want to add/update the required training using the personnel table and the junction table. (maybe not the best way?)
So all personnel in the admin department require printer training, and the supervisors also require supervisor training. I want to be able to cycle through the personnel table looking for everyone in the admin dept and mark printer training in the master training table as required and if they are a supervisor I want to mark supervisor training field.
Clear as mud right? The reason its dynamic is, next year the required training could change. So the junction table could change. If i hard code to the junction fields each year i would have to change the code.
If this is not the right direction, what is the best direction.
Thanks for any help!!!