HELP

HELP

Hello I have a question, I want to add my total Subform "Recibo de Gastos" and add up the totals appear in the "Totalde Comprobación use is script is correct?

Recibo_de_Gastos.Total11 = (input.Recibo_de_Gastos.Subtotal  +  input.Recibo_de_Gastos.IVA  +  input.Recibo_de_Gastos.Otros);
input.Total_de_Comprobacion1 = input.Recibo_de_Gastos.Total11;
for each order in Recibo_de_Gastos
{
    if (input.Recibo_de_Gastos.Total11  !=  null)
    {
        input.Total_de_Comprobacion1 = input.Recibo_de_Gastos.Total11;
    }
    for each Total1 in Recibo_de_Gastos
    {
        if (input.Recibo_de_Gastos.Total11  !=  null)
        {
            input.Total_de_Comprobacion1 = (input.Recibo_de_Gastos.Total11  +  input.Recibo_de_Gastos.Total11);
        }
    }
}
Recibo_de_Gastos.Total11 = input.Total_de_Comprobacion1;
input.Total_de_Comprobacion1 = input.Recibo_de_Gastos.Total11;
input.Total_de_Comprobacion1 = input.Recibo_de_Gastos.Total11;
"