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