Function fetch all records in a subform

Function fetch all records in a subform

Hello, I have a form with a subform and I want when selecting a client of my form subform records fill one box (with the fetch function). I have managed to do with the first record, but in my subform I register more than 2 records, the fetch only affects the first, I want that all records have filled that box.


  "R.Ordenes"





if (input.Clientes1  !=  null)
{
    if (input.Correo_Electronico  !=  null)
    {
        dat  =  Clientes1  [ID == input.Clientes1];
        R.Ordenes = dat.Correo;
    }
}