Subform Total only calculates the first row

Subform Total only calculates the first row

Hi Giys

I am using the follwoing code to multiply the quantity of a product by the price and then return the result in a column in the subform, it works, but only on the first row? If i add a second row it doesnt work? Any ideas why this could be?

  1. input.Quote.Total_Price = input.Quote.Unit_Price * input.Quote.Quantity;