Assuming subform2 is required, the following result was found.
in r_Record.mySubform1 { v_StartTime = r_SubformRow.Start_Time; } } // set an else if condition else if(r_Record.Type == "Subform2") { // loop through the first subform of this record for each r_SubformRow in r_Record.mySubform2 { v_StartTime =...