Calculating subtotals/page totals
Hello;
I'm trying to calculate row subtotals and a page total within a repeating table (see below).

What code should I be using for the Total Value column to total each row and then the Page Total row at the bottom to add up all of the rows in the Total Value column? I know the easiest way is with FormCalc but everything I've tried has duplicated the values from the previous row to the new row when the Add '+' button is clicked.
I appreciate your help.