I'm trying to create Relationship between employees and managers in a form.
Here's what I have so far:
Four main tables:
1- Employees
2- Managers
3- Status
4- Form-table
On my employee table I have a few columns : ID, First Name, Last Name, Full Name, Manager and Status.
I create a form that is linked to the employee table where I can add the information. In there I have two dropdown box where I can select a manager and set the status of the employee (active, project, away, leave).
All of this works great so far.
Now I'm creating a form where i'm reviewing the employees work. The form is link to the "Form-table" table where I collect a bunch of information (date, work number, comments, etc.) as well as the employee name and manager.
I currently have a dropdown on that page to select which employee is being reviewed.
Here's what I'm trying to do, but have no idea how to accomplish it.
I would like to be able to register in employee the name of the employee and in manager the name of the manager, however I would like to only select the name of the employee and have the form auto populate the name of the manager in the correct field.
I tried playing with the combo box and adding the two fields (employee name and manager) but only the ID of the employee is being recorded.
The reason why I want this to auto populates and to record on this new table is that employees/manager change all the time, so I want to be able to change the Relationship in my employee form, however I want the Relationship on my "Form-table" to stay unaltered after the work as being reviewed, even if the employee is working under a new manager.
So in plain language: I want to select the employee name and have the manager name getting recorded at the same time.
I hope this makes sense...