Ok, I was able to combine your solutions to a working prototype.I am
using a dummy-subform in "repeating_subform", which has the target
"last_page". This subform is hidden by default.With your script from
above I now determine which subform-instances are on the last page, and
set the dummy-subform to "visible" for all corresponding instances. Then
I use relayout() to apply the changes.This way I have the last page on a
different master page and can now use a different paper tray.Thanks
again for...