How to do data entry of many to many

Is there an example of doing a many to many data entry and Updating records or adding records to other tables as a transaction after saving? So no updating or adding if there are problems saving from the many to many or one to many data entry, just like the Order Header and Order Detail on the Northwind database. Thanks!

See:

And the working with multi references to make many to many relations: