Deepak.Doddagoudar
Registered User.
- Local time
- Today, 01:44
- Joined
- Mar 15, 2018
- Messages
- 14
I have many to many relationship between tblMachine, tblMachineSystem,tblMachineSubSystem and tblComponents. There three junction table between them. I have a form with four listboxes for each table. When i click a button under the first listbox (listMachine) it gives me the items in the second listbox (listMachineSystem) and it continues till listComponents.
I also have a text box where in i type new machine name and when i click a button the tblMachine is updated with new machine.
My requirement is the New machine created must also populate the first junction table (between tblmachine & tblMachineSystem) with the new machine ID and existing Machine System ID.
MachineID MachineSystemID
1 2
1 2
2 1
2 2
From the above description the first two rows is created manually. Now I want to assign the ID 2 for New Machine and link it to the old ID of Machine System.
I also have a text box where in i type new machine name and when i click a button the tblMachine is updated with new machine.
My requirement is the New machine created must also populate the first junction table (between tblmachine & tblMachineSystem) with the new machine ID and existing Machine System ID.
MachineID MachineSystemID
1 2
1 2
2 1
2 2
From the above description the first two rows is created manually. Now I want to assign the ID 2 for New Machine and link it to the old ID of Machine System.