Fetch record, subform to subform.

Fetch record, subform to subform.

I have a Form with a Subform . I do a fetch data from another subform (subform where I want to get the information is a subform blank, no way).

When I make the fetch fetch only becomes the first entry in the first inning and need:

First entry -  first entry
Second entry Second entry  ... etc

Would like to know if there are other ways to do this THAN A FETCH. THANK YOU!



if (input.Cotizador_Multiple  !=  null)
{
    dat  =  Cotizador_Multiple  [ID == input.Cotizador_Multiple];
    for each i in R
    {
        dat  =  Cotizador_Multiple  [ID == input.Cotizador_Multiple];
        R.Precio = dat.Articulos.Subtotal;
    }
}