Hi Bruce,That work superbly, like a charm, no words for it. I did not find any solution to this before this attachment. Sorry I took long to reply. Can you please explain a little it to me? I tried comments but did not get it.What xfa.layout.absPageSpan(Subform1) return ??It was really what I want....