Goal: Select all employees that have all skills necessary to complete a task.
Relevant tables and (fields): Employees (EmployeeID, EmployeeName), Employees/Skills (EmployeeID, SkillID), Tasks/Skills (TaskID, SkillID)
Relevant forms: Tasks
Relevant relationships: Employees to Skills is Many-to-Many, Tasks to Skills is Many-to-Many
Goal restated: Populate combobox TaskCompletedBy on form Tasks with all EmployeeNames from table Employees where [Employees/Skills].[SkillID] is a subset of [Tasks/Skills].[SkillID].
Example: Employee1 has Skill1, Skill2, and Skill3. Task1 requires Skill2 and Skill3. Combobox is populated with Employee1, since his skillset is a subset of the required skillset.
Can anyone help me out? This SQL statement is going to give me a stroke.
CB55
Relevant tables and (fields): Employees (EmployeeID, EmployeeName), Employees/Skills (EmployeeID, SkillID), Tasks/Skills (TaskID, SkillID)
Relevant forms: Tasks
Relevant relationships: Employees to Skills is Many-to-Many, Tasks to Skills is Many-to-Many
Goal restated: Populate combobox TaskCompletedBy on form Tasks with all EmployeeNames from table Employees where [Employees/Skills].[SkillID] is a subset of [Tasks/Skills].[SkillID].
Example: Employee1 has Skill1, Skill2, and Skill3. Task1 requires Skill2 and Skill3. Combobox is populated with Employee1, since his skillset is a subset of the required skillset.
Can anyone help me out? This SQL statement is going to give me a stroke.
CB55
Comment