how to get page no. on group level section (1 Viewer)

Falcon88

Registered User.
Local time
Today, 19:46
Joined
Nov 4, 2014
Messages
299
hi
i have a report with group level section , i use this code :
Code:
Private Sub G1Header_Format(Cancel As Integer, FormatCount As Integer)
If Me.InsurCmpName = 3 Then
Me.G1Header.ForceNewPage = 1
End If
End Sub
how to get the page no. of that section exactly not to all the report ?
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 11:46
Joined
Feb 28, 2001
Messages
27,191

Me.Pages is the total number of pages in the report. Me.Page is the current page's number. If you are in VBA at the time, of course.
 

isladogs

MVP / VIP
Local time
Today, 17:46
Joined
Jan 14, 2017
Messages
18,237
See the code in my article:
 

Users who are viewing this thread

Top Bottom