Hiding PageFooterSection on first page only

O

Odniel

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.
 
G

Gina Whipp

Change... Me.PageFooterSection = ([Page] <= 1)

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

Hope That Helps
 
O

Odniel

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.
 
G

Gina Whipp

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.
 
O

Odniel

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.
 
G

Gina Whipp

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.
 
R

Rick Brandt

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.
 
O

Odniel

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.
 

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