Hello all,
I am having a many to many relationship between table tblMachine, tblMachineSystem, tblMachineSubSystem and tblComponents. I have created junction tables between tblMachine and tblMachineSystem, tblMachineSystem and tblMachineSubSystem and tblMachineSubSystem and tblComponents. I have a multiple Multiselect listboxes in the form. The new record from the form textbox must populate the tblMachine and its ID must populate the junction table a shown below. Now how to write a code (I do not want to go to subforms) for this. In the table, MachineID 2 is the new record.
MachineID MachineSystemID 1 1 1 2 2 1 2 2