Hi, ACCESS noob here. I have a simple database (using to test problems with a much larger one) with three tables, one being a junction table because the relationship between the other two (tblEmployee and tblDuties) is many-to-many.
tblEmployee
EmployeeID (PK, autonumber)
LastName (Text)
FirstName (Text)
tblDuties
DutyID (PK, autonumber)
DutyName (Text)
tblEmployeeDutiesJunction
EmployeeDutyID (PK, autonumber)
EmployeeID (FK, long integer)
DutyID (FK, long integer)
I have a form set-up to input data into tblEmployee (called frmEmployee).
I have already populated tblDuties with data.
I understand that I need a another form to populate the junction table. I would like, while creating a new employee record (using frmEmployee), to have tblEmployeeDutiesJunction.EmployeeID to be automatically populated with the current EmployeeID from frmEmployee. I already have a combo box set-up that when I select the duty name, it populates tblEmployeeDutiesJunction.DutyID with the proper DutyID from tblDuties. How can I get this to work?
Thanks very much in advance!