Report Section

D

Dwight

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
Else
If Me.Section.Name = "Detail" Then
Me.PageHeaderSection.Visible = True
Me!tbNameLine.Height = 555
Else
End If
End If


End Sub
****************************************************
Thanks in advance!

Dwight
 
A

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

Top