UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Displaying 2nd Page Footer    
 
   
Andycap
post Apr 23 2008, 04:14 AM
Post #1

UtterAccess Addict
Posts: 270
From: Shropshire, England



Hello,

I have a report that has a page footer that I display on the first page only.

Is it then possible to display a different footer on all other pages?

I have searched through the forum but have been unable to find anything that works for me.

Many Thanks
Andy
Go to the top of the page
 
+
Peter46
post Apr 23 2008, 05:24 AM
Post #2

UtterAccess VIP
Posts: 7,396
From: Oadby Leics, UK



The only way I can think of doing that would be to build one footer section which contains all the controls from both versions of the footer, and then use the .visible property of each control to make some visible and some invisible depending on the page number.

In the page footer print event you would have stuff like:

me.textbox1.visible = (Page =1) ' visible only on page 1
me.textbox2.visible = (page<>1) ' visible on page2 onwards
Go to the top of the page
 
+
vtd
post Apr 23 2008, 05:26 AM
Post #3

Retired Moderator
Posts: 19,667



There is only one Page Footer Section in Access Report. However, you can use the PageFooter_Format Event with the Page Property to perform some actions on the Controls in the PageFooter section, e.g. show/hide Controls in the PageFooter.
Go to the top of the page
 
+
Andycap
post Apr 23 2008, 06:13 AM
Post #4

UtterAccess Addict
Posts: 270
From: Shropshire, England



Cheers Van,

I am using the OnFormat Event to only display the footer on the first page with;

Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
If Page <> 1 Then Me.PrintSection = False

End Sub

Thanks Peter,

I shall try using this method, altough there are a lot of controls and lines in my footer so it will take some time.
I will let you know how I get on.

Also do you know how I can get rid of the empty space that is left on the other pages when the footer is hidden?

Many Thanks
Andy
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 10:30 AM