Hiding PageFooterSection on first page only

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I used the following code to hide the PageFooterSection of my report on the
first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the second
page, either. What am I doing wrong? Thanks in advance.
 
Change... Me.PageFooterSection = ([Page] <= 1)

The way you have it says 'anything 1 and greater'

Hope That Helps
 
Thanks, but if I put the "=", the page footer will show on page 1. When I put
the ">" only, the page footer starts on page 3. How do I get it to include
page 2?

Gina Whipp said:
Change... Me.PageFooterSection = ([Page] <= 1)

The way you have it says 'anything 1 and greater'

Hope That Helps

Odniel said:
I used the following code to hide the PageFooterSection of my report on the
first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second
page, either. What am I doing wrong? Thanks in advance.
 
Oh, my mistake you don't want it to show on page 1

Then Me.PageFooterSection = ([Page] >= 2)

Hope I got it right this time!

Odniel said:
Thanks, but if I put the "=", the page footer will show on page 1. When I
put
the ">" only, the page footer starts on page 3. How do I get it to include
page 2?

Gina Whipp said:
Change... Me.PageFooterSection = ([Page] <= 1)

The way you have it says 'anything 1 and greater'

Hope That Helps

Odniel said:
I used the following code to hide the PageFooterSection of my report on
the
first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second
page, either. What am I doing wrong? Thanks in advance.
 
Hi Gina,

I found the answer: Cancel = [Page] = 1

Gina Whipp said:
Change... Me.PageFooterSection = ([Page] <= 1)

The way you have it says 'anything 1 and greater'

Hope That Helps

Odniel said:
I used the following code to hide the PageFooterSection of my report on the
first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second
page, either. What am I doing wrong? Thanks in advance.
 
Sorry I didn't think of that! Oh, well glad you got that solved....

Odniel said:
Hi Gina,

I found the answer: Cancel = [Page] = 1

Gina Whipp said:
Change... Me.PageFooterSection = ([Page] <= 1)

The way you have it says 'anything 1 and greater'

Hope That Helps

Odniel said:
I used the following code to hide the PageFooterSection of my report on
the
first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second
page, either. What am I doing wrong? Thanks in advance.
 
Odniel said:
I used the following code to hide the PageFooterSection of my report
on the first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second page, either. What am I doing wrong? Thanks in advance.

Just set the PageFooter property of the report to...

Not with Rpt Hdr

NO code required.
 
This did not work for my report.

Cancel did the trick.

Thanks, though.

Rick Brandt said:
Odniel said:
I used the following code to hide the PageFooterSection of my report
on the first page:

Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
Me.PageFooterSection = ([Page] > 1)
End Sub

When I do this, however, the PageFooterSection is not visible on the
second page, either. What am I doing wrong? Thanks in advance.

Just set the PageFooter property of the report to...

Not with Rpt Hdr

NO code required.
 
Back
Top