Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

groupheader.page from pageheader_format

Status
Not open for further replies.

GavinP

MIS
Jul 1, 2005
17
GB
Is it possible to get the groupheader page from the format sub of the pageheader.

I have a report, with several subreports, one of which contains several pages of data. On the main page, I've put into the pageheader the column headers of the sub report, which shouldn't be shown on the first page of the group.

At present, i've got the following in my pageheaderformat,

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)

If Me.Page = 1 Then

PageHeaderSection.Visible = False
Else
PageHeaderSection.Visible = True
End If



End Sub
which obviously works for the first group.

What I would like is something along the lines of the following
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)

If Me.Page = groupheader0.page Then

PageHeaderSection.Visible = False
Else
PageHeaderSection.Visible = True
End If
end sub

I'm sure there must be a way to do this, but I can't get it to work.

Gavin

 
I do not understand why the Repeat Section option has not been used with the Group Header.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top