Bombshell Disaster
Registered User.
- Local time
- Today, 08:07
- Joined
- Nov 21, 2007
- Messages
- 32
Hi All
I have a grouped report that I want to display page (n of n) page 1 of 3.
I also then want to display page headers on the subsequent pages of the grouped report but not the first page.
I.e. Whole report as 10 pages, made of three grouped reports.
Report 1 - Page 1 of 3 - Display pages header section on pages 2 & 3.
Report 2 - Page 1 of 3 - Display pages header section on pages 2 & 3.
Report 3 - Page 1 of 4 - Display pages header section on pages 2,3 and 4.
I can achieve showing just page on each change in group.
Hope to hear from you guys soon..
Thanks
I have a grouped report that I want to display page (n of n) page 1 of 3.
I also then want to display page headers on the subsequent pages of the grouped report but not the first page.
I.e. Whole report as 10 pages, made of three grouped reports.
Report 1 - Page 1 of 3 - Display pages header section on pages 2 & 3.
Report 2 - Page 1 of 3 - Display pages header section on pages 2 & 3.
Report 3 - Page 1 of 4 - Display pages header section on pages 2,3 and 4.
I can achieve showing just page on each change in group.
Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
'Set page number to 1 when a new group starts.
Page = 1
End Sub
I can also achieve showing page headers on pages other than the first page, though it does it for all the pages apart from the first page of the whole report, because it does not take into account the page numbers resetting. 'Set page number to 1 when a new group starts.
Page = 1
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
If Me.Page > 1 Then
Me.Report.Section(acPageHeader).Visible = True
Else
Me.Report.Section(acPageHeader).Visible = False
End If
End Sub
I have spent all day looking through solutions, and while the same thing has been mentioned many times on this forum, there has not been a solution. If Me.Page > 1 Then
Me.Report.Section(acPageHeader).Visible = True
Else
Me.Report.Section(acPageHeader).Visible = False
End If
End Sub
Hope to hear from you guys soon..
Thanks