A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Page Footers



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2004, 03:36 PM
Brian Shannon
external usenet poster
 
Posts: n/a
Default Page Footers

I am creating a report with Quote information. The quote may have detail information that spans more than one page. I need total information, tax, and subtotal in the same location everytime so I figured I would put this info in the page footer.

If the report spans multiple pages I need this total information to only show up on the last page. Currently it will show on every page. Is there a way to program page footer info to only show if on the last page?

I can't use the report footer because then the information will be in all different locations depending on how many detail records there are.

Thanks
  #2  
Old May 19th, 2004, 04:04 PM
SA
external usenet poster
 
Posts: n/a
Default Page Footers

Brian:

Assuming that you've got a group header and group footer for each quote.
(If you don't, then create one based on say the Quote ID; there doesn't have
to be anything in the header or footer in particular, you just need them to
fire before and at the end of each quote).

Then all you have to do is add a little code like this which measures
whether you are within a quote or at the end of it.

a.) Add a variable Dim boolInQuote as boolean to the report's module
declarations section
b.) In the group header's On Print event, add: boolInQuote = True
c.) In the group footer's On Print event add: boolInQuote = False
d.) For the page footer's On Format event add code like this:

If boolInQuote = True Then
Me.PrintSection = False
Me.MoveLayout = True
End If

That should do it.
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Brian Shannon" wrote in message
...
I am creating a report with Quote information. The quote may have detail
information that spans more than one page. I need total information, tax,
and subtotal in the same location everytime so I figured I would put this
info in the page footer.

If the report spans multiple pages I need this total information to only
show up on the last page. Currently it will show on every page. Is there
a way to program page footer info to only show if on the last page?

I can't use the report footer because then the information will be in all
different locations depending on how many detail records there are.

Thanks



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.