G
Guest
I have a report where I have a Group header that I want to print on the first
page of the report for the group. I have a page header that I want to appear
on pages 2-the end for each group.
Here is the code I am using:
Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
Page = 1
If Page = 1 Then
GroupHeader2.Visible = True
Else
GroupHeader2.Visible = False
End If
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
If Page = 1 Then
PageHeaderSection.Visible = False
Else
PageHeaderSection.Visible = True
End If
End Sub
It works great for the first group, but all other groups, both headers
appear on the first page. The Page header does not recognize that Page = 1
at the change of the grouping.
How can I get this to work correctly?
Thanks!
page of the report for the group. I have a page header that I want to appear
on pages 2-the end for each group.
Here is the code I am using:
Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
Page = 1
If Page = 1 Then
GroupHeader2.Visible = True
Else
GroupHeader2.Visible = False
End If
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
If Page = 1 Then
PageHeaderSection.Visible = False
Else
PageHeaderSection.Visible = True
End If
End Sub
It works great for the first group, but all other groups, both headers
appear on the first page. The Page header does not recognize that Page = 1
at the change of the grouping.
How can I get this to work correctly?
Thanks!