Originally Posted by
June7
The line:
Me!ctlGrpPages = "Group Page " & GrpArrayPage(Me.Page) & " of " & GrpArrayPages(Me.Page)
is supposed to set value into textbox. So no, do not set the ControlSource property for this textbox.
I had to insert a report page numbering textbox then the code populates ctlGrpPages. From report design ribbon, click on Page Numbers and select 'Page N of M'.
I find that if there are controls in Report footer and the group is set to force a new page after the group footer, the report and last group will have an extra page in their page counts.
Have you set group section to force new page after the group footer?