for doing this, you need to have 2 recordsets, one recordset that returns the parent items, and a second recordset that returns the child items, the second recordset needs to be nested inside the loop
the format of the code will look lie this:
-parent recordset
-parent recordset loop
--write label
--child recordset, filters using the ID from the parent recordset
--child recordset loop
---write child info
--end child recordset loop
-end parent recordset loop