Create N Rows in Subform Based on Number Field
I have a number field to which I need to create N number of rows in a subform. For example, input.Number_of_Payments == 8 > on user input > insert 8 rows into subform. I'm capable of doing the entirety of the code, however, I'm having trouble conceptualizing how to insert N number of rows based on a non-list/non-collection, number field. If anyone has some sample code, I would greatly appreciated it. Thank you.