I've designed a simple form for entering new employee information. The main table it's based on is EmployeeInfoT. The primary key is EmployeeID, and the other fields store basic info like FirstName, LastName, HireDate, etc.
I have another table, DepartmentInfoT, that stores Department and Manager info. Each Department has only one Manager.
I've joined the DepartmentInfoT table's primary key (DeptID) to the Department field in the EmployeeInfoT table. Each Department can have several Employees.
When I input a new employee's info in my form, I can choose the Department from a dropdown box, and then the corresponding Manager's name automatically appears in a text box field below it. This is perfect - exactly what I want to happen.
However, if I input the info directly into the EmployeeInfoT datasheet, I can't get that Manager field to populate correctly. It gives me another dropdown box with all the Managers' names to choose from. So it's possible I could choose the wrong Manager for the given Department.
Is there a way for the correct Manager's name to automatically appear in the Datasheet view, just like it does in the form? What other info do you need in order to assess this situation?
Thanks!