Hi.
Problem 1:
The sourrounding subform "Table4Subform" is not set to fit the hight automatically.
Problem 2.
The remove script is way to complex, use this script instead:
if (this.parent.parent.instanceManager.count > 1) {
this.parent.parent.instanceManager.removeInstance(this.parent.parent.index);
}
Problem 3:
Remove the Grouping "Body", then the subform flow crrectly to the next page.
Problem 4:
The reference to the total fields are not correct, that's why the grand total script fails.
Change it into:
Sum(Table1Subform.Table1.FooterRow.Total1, Table23Subform.Table2.FooterRow.Total2, Table23Subform.Table3.FooterRow.Total3, Table4.FooterRow.Total4)