Hi
I have 2 tables. tblPassword with 3 fields: UserID (AutoNum), User (Text), and Password (Text), and tblDept with 3 fields: DeptID (AutoNum), Dept (Text), DeptMgr (Numeric).
I have a form called frmNewManager that's based on tblPassword, and it has 3 fields: ctlUser (from tblPassword), ctlPassword (frm tblPassword), and ctlDept (from tblDept). The fields appear the order described above.
How can I add a record that will take the values of the 3 form fields and update both tables? I know that I need to store the new UserID from tblPassword to the DeptMgr field in tblDept, but if this isn't assigned by Access until after the record is inserted, how can I get the Dept name in the 2nd table?
Any help would be appreciated. Thanks!
Jim DeGeorge
I have 2 tables. tblPassword with 3 fields: UserID (AutoNum), User (Text), and Password (Text), and tblDept with 3 fields: DeptID (AutoNum), Dept (Text), DeptMgr (Numeric).
I have a form called frmNewManager that's based on tblPassword, and it has 3 fields: ctlUser (from tblPassword), ctlPassword (frm tblPassword), and ctlDept (from tblDept). The fields appear the order described above.
How can I add a record that will take the values of the 3 form fields and update both tables? I know that I need to store the new UserID from tblPassword to the DeptMgr field in tblDept, but if this isn't assigned by Access until after the record is inserted, how can I get the Dept name in the 2nd table?
Any help would be appreciated. Thanks!
Jim DeGeorge