So I'm sure this is a very simple answer but I am having some serious issue. I've got 2 tables... tbl_employees and tbl_projects. They are both pretty obvious on what they contain.
Numerous people can be assigned to a project but there is only 1 Lead. So I assign individuals to a project and store said data on the employee table (tbl_employees.project). From there I want to assign the project the lead (tbl_project.lead)... In the lead field I have a drop down that shows employees from tbl_employee... I've gotten it to filter down to people assigned to a project however, I want it to only show those assigned to the project I'm currently working on.
For instance... on project "West Gate" at the "Lead" field, it should only show those that are assigned "West Gate" on field tbl_employees.project. Every type of join I've tried brings up either everyone on the employee table or anyone on the employee table that is assigned ANY project... how can I make it provide on specific ones?
Numerous people can be assigned to a project but there is only 1 Lead. So I assign individuals to a project and store said data on the employee table (tbl_employees.project). From there I want to assign the project the lead (tbl_project.lead)... In the lead field I have a drop down that shows employees from tbl_employee... I've gotten it to filter down to people assigned to a project however, I want it to only show those assigned to the project I'm currently working on.
For instance... on project "West Gate" at the "Lead" field, it should only show those that are assigned "West Gate" on field tbl_employees.project. Every type of join I've tried brings up either everyone on the employee table or anyone on the employee table that is assigned ANY project... how can I make it provide on specific ones?