it is not possible to model a many-to-many relationship in a database. It has to be decomposed into 2 x 1-to-many relationships
you have documents and cylinders. A many-many relationship implies that each document (can) includes many cylinders, and each cylinder (can) be on many documents.
so you need a joining table - the document details table - to link the 2.
you may have
document 1, cylinder A
document 1, cylinder B
document 1, cylinder C
document 1, cylinder D
document 2, cylinder B
document 2, cylinder D
document 3, cylinder B
document 4, cylinder D
----
this data can be equalled displayed/sorted in terms of the cylinders
document 1, cylinder A
document 1, cylinder B
document 2, cylinder B
document 3, cylinder B
document 1, cylinder C
document 1, cylinder D
document 2, cylinder D
document 4, cylinder D
the way you choose to design your forms is a matter of taste. you may want to see the documents as a main form, and show the cylinders related to each in a subform. As you move from document to document, the related cylinders change automatically to reflect the underlying data. Alternatively you may choose to display the cylinders as the master, and documents as a sub form. You will probably have both.
-------------
You design queries based on your tables to extract the data you want to see.
so if you want to display documents, with cylinders as a subform
Main Form - based on Documents table
SubForm - based on a query joining the Junction Table with the Cylinders Table (to obtain details about cylinders)
The link is the documentID from the main form, and the DocumentID in the subform.
So that your system shows the cylinders related to the selected/active document.
I hope that makes sense.
----------------------
I would not class your structure as a master-child relationship. A master child relationship is (I would suggest) a 1 to many relationship. In your case each entity could be a master of the other, which is why it is many-to-many
A customer has many orders, and is therefore the master of the orders. An order can only have one customer. You should not be allowed to create an order without first having a customer.