Report Section



How can I programatically determine what section the
report is in, using the On Page event?

Here is an example of what I have tried:

Private Sub Report_Page()

If Me.Report.Page = 0 Then
If Me.Section.Name = "Detail" Then
Me.PageHeaderSection.Visible = True
Me!tbNameLine.Height = 555
End If
End If

End Sub
Thanks in advance!




Allen Browne

The report is not working on any of the sections at the time it is
formatting the Page, so you will not be able to set the heights and
visibility of the sections.

You can discover the page number from the Page variable (though it would not
normally be page zero unless you set it so).

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Report Section????????? 0
Sections in Report 1
report detail section 2
Report Section Orientation 2
Report Section Break 1
Detail Section of Report 4
Excluding Report Sections 3
Adding sections to a report 1