I want to display a header only on the second page and beyond but PER record. The first page of the new detail should not have the page header visible.
Originally I had the following code
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
Me.PageHeaderSection.Visible = Not (Me.Page = 1)
End Sub
It displays the header on everyother page except the first.
I want the header to be visible after the first page (but not including the first page) for each group.
I created this simple sub that seems to do the trick. Basically, for each page, it checks if the group is the same as before. If it is different it assumes that it is the first page of the group and doesn’t display the header.