Queries, Comboboxes and Tables
Hi all -
I have a many-to-many relationship that is resoved into three tables (two parent tables and a junction table between them)
1. Project: ProjID, ProjName
2. Project-Employee: peID, projID, empID
3. Employee: empID, empLastName, empFirstName, etc...
I have a form on which I want to display all Employees who are working on a project. However, the names of the employees are stored as empFirstName and empLastName in the EMPLOYEE table. I wrote a query which combines the first and last name into an expression called empFullName.
When the user selects a project, the form will display a continuous form list of all the employees who work on that project, using the empFullName value from a query. What I would like, is for the user to be able to add or modify the employee(s) working on a particular project from this form by selecting their names from a meaningful list (which would mean both first and last name would appear in the list).
I imagine that this has something to do with setting the ControlSource and RowSource in some correct combination. I can get the contol on the subform to display the empFullName for all employees working on a project. However, the rest (i.e. reassinging the project to a new employee, or adding additional employees to a project) doesnt seem to be working correctly.
Ideally the end result would be:
1. A project is selected and displays the employees (if any) that are assigned to that project by empFullName (the result of the expression in the EmployeeQuery).
2. The person using the database can either reassign the project to a new employee or add another employee to the project, but they would be limited to a list consisting of empFullName for everyone in the company
I've attached the database with all the forms and tables as they are. Any help would be appreciated. I also need to do essentially the same thing for Applicants. I'd like to first display all applicants for a particular project and then be able to change or add applicants based on a list of all possible applicants derived in some fashion from the APPLICANT table.
help!
eric