In my DB I have 6 linked tables based on user unique ID (BEMS). These tables are set up do be able to show user/management hierarchy. This tends to change many times over a year. I want to be able to show all 6 tables on a form and be able to change any one of them. But, my query will not allow changes. Here is my query
Is there any way I can show all tables as they are linked, like the query above, and still be able to change data in one or more of them.
Example: Manager_3-11 table has a manager that needs to be changed. To keep it simple the new manger will report to the same manger. But, his lower level mangers will have to have their data changed to reflect the new managers unique ID (BEMS). So, I need to delete the old manager and add the new and his ID and then copy the ID into the lower managers table.
Can you help? Is this set up too complex. Is there an easier way to store all the managers information and their levels? Like maybe in one table?
Thanks
John
Code:
SELECT [Manager_1-11].MGR1_BEMS, [Manager_1-11].Name1, [Manager_1-11].[Accounting Dept1], [Manager_2-11].MGR2_BEMS, [Manager_2-11].Name2, [Manager_2-11].[Accounting Dept2], [Manager_3-11].MGR3_BEMS, [Manager_3-11].Name3, [Manager_3-11].[Accounting Dept3], Manager_41.MGR4_BEMS, Manager_41.Name4, Manager_41.[Accounting Dept4], Manager_51.MGR5_BEMS, Manager_51.Name5, Manager_51.[Accounting Dept5], Manager_61.MGR6_BEMS, Manager_61.Name6, Manager_61.[Accounting Dept6]
FROM (((([Manager_1-11] LEFT JOIN [Manager_2-11] ON [Manager_1-11].[Managers Bems2] = [Manager_2-11].MGR2_BEMS) LEFT JOIN [Manager_3-11] ON [Manager_2-11].[Managers Bems3] = [Manager_3-11].MGR3_BEMS) LEFT JOIN Manager_41 ON [Manager_3-11].[Managers Bems4] = Manager_41.MGR4_BEMS) LEFT JOIN Manager_51 ON Manager_41.[Managers Bems5] = Manager_51.MGR5_BEMS) LEFT JOIN Manager_61 ON Manager_51.[Managers Bems6] = Manager_61.MGR6_BEMS;
Is there any way I can show all tables as they are linked, like the query above, and still be able to change data in one or more of them.
Example: Manager_3-11 table has a manager that needs to be changed. To keep it simple the new manger will report to the same manger. But, his lower level mangers will have to have their data changed to reflect the new managers unique ID (BEMS). So, I need to delete the old manager and add the new and his ID and then copy the ID into the lower managers table.
Can you help? Is this set up too complex. Is there an easier way to store all the managers information and their levels? Like maybe in one table?
Thanks
John