Sign in to Community
Sign in to view all badges
Expand my Community achievements bar.
The parent subform must be set to Flowed. Make sure each page (subform) is set to Pagination>Following Previous.
The code is in the prePrint and postPrint events of the subform "Main".
So if you try printing, page 1 will disappear.
I just created it as a rudimentary example you can inspect with Designer to help you along your way.