Dealing with Sub forms

Dealing with Sub forms

Hello, 

I need to generate a separate waybill for each line in a multi-line subform. The variable fields will be from the subform and the waybill number which is autogenerated and the rest of the fields will be static. 

How could I design the format to collect the variables for each way bill for the entire sub-form.