473,769 Members | 6,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

page footer STUMPER

I know the basics about access reports and putting page totals in the
page footers. What I can't figure out is along with the current page
total to display the previous page total:

At the bottom of every page:
Page 1 page footer:
Total brought forward= $0.00
Current Page total = $100.00
Grand Total= $100.00
Page 2 page footer:
Total brought forward= $100.00
Current Page total = $75.00
Grand Total = $175.00
Page 3 page footer
Total Brought forward= $175.00
Page Total= $20.00
Grand Total= $195.00
How can I get the the previous page total to display if the code
automatically resets
the page total to zero when it draws the next page?
Here is the code for doing the page totals in the page footer:
Private Sub Detail_Print(Ca ncel As Integer, PrintCount As Integer)
txtPageCashSum = txtPageCashSum + txtDonorCashAmm ount
txtPageCheckSum = txtPageCheckSum + txtDonorCheckAm mount
End Sub
Private Sub PageHeaderSecti on_Print(Cancel As Integer, PrintCount As
Integer)
txtPageCashSum = 0
txtPageCheckSum = 0
End Sub

Aug 28 '06 #1
2 2244
It won't. You need to either add groups to your report and subtotal by
group, or just total by report.

CaptainDahlin wrote:
I know the basics about access reports and putting page totals in the
page footers. What I can't figure out is along with the current page
total to display the previous page total:

At the bottom of every page:
Page 1 page footer:
Total brought forward= $0.00
Current Page total = $100.00
Grand Total= $100.00
Page 2 page footer:
Total brought forward= $100.00
Current Page total = $75.00
Grand Total = $175.00
Page 3 page footer
Total Brought forward= $175.00
Page Total= $20.00
Grand Total= $195.00
How can I get the the previous page total to display if the code
automatically resets
the page total to zero when it draws the next page?
Here is the code for doing the page totals in the page footer:
Private Sub Detail_Print(Ca ncel As Integer, PrintCount As Integer)
txtPageCashSum = txtPageCashSum + txtDonorCashAmm ount
txtPageCheckSum = txtPageCheckSum + txtDonorCheckAm mount
End Sub
Private Sub PageHeaderSecti on_Print(Cancel As Integer, PrintCount As
Integer)
txtPageCashSum = 0
txtPageCheckSum = 0
End Sub
Aug 28 '06 #2
"ManningFan " <ma********@gma il.comwrote in
news:11******** **************@ m73g2000cwd.goo glegroups.com:
It won't. You need to either add groups to your report and
subtotal by group, or just total by report.
Total bogosity. All it takes is a little VB code.

In the reports declarations section define three variables
PbfTTL, PgTtl and RptTtl.for your three totals.

In the Page header format Event, set
PgTtl = 0
In the Detail Format Event, update two variables
PgTtl = PgTtl + me.fieldToTotal
RptTtl = RptTtl + me.fieldToTotal
In the page footer, total brought forward is RptTtl - PgTtl

Bob Q

CaptainDahlin wrote:
>I know the basics about access reports and putting page
totals in the page footers. What I can't figure out is along
with the current page total to display the previous page
total:

At the bottom of every page:
Page 1 page footer:
Total brought forward= $0.00
Current Page total = $100.00
Grand Total= $100.00
Page 2 page footer:
Total brought forward= $100.00
Current Page total = $75.00
Grand Total = $175.00
Page 3 page footer
Total Brought forward= $175.00
Page Total= $20.00
Grand Total= $195.00
How can I get the the previous page total to display if the
code automatically resets
the page total to zero when it draws the next page?
Here is the code for doing the page totals in the page
footer:
Private Sub Detail_Print(Ca ncel As Integer, PrintCount As
Integer)
txtPageCashSum = txtPageCashSum + txtDonorCashAmm ount
txtPageCheckSum = txtPageCheckSum +
txtDonorCheckAm mount
End Sub
Private Sub PageHeaderSecti on_Print(Cancel As Integer,
PrintCount As Integer)
txtPageCashSum = 0
txtPageCheckSum = 0
End Sub



--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Aug 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2155
by: Els | last post by:
Kris wrote: <quote> Liquid layout allows the footer to position itself at the end of the page, no matter how long or tall the page is. This is a Good Thing for various reasons that require a thread of their own. </quote> Well, Kris, here's a new thread for you, go ahead ;-)
2
4477
by: Tristan Miller | last post by:
Greetings. I have a two-column web layout, where the first column is just the regular body text with a "marign-right" of 16em, and the second column is an "absolute"-positioned div with a width of 16em. I would like to have a footer extending across the entire width of the page, at the very bottom of the page (i.e., after both columns end). How can I do this? There is no way of knowing in advance which of the two columns will be...
3
2179
by: manning_news | last post by:
Using A2K. I've got a page footer that is displayed only on the last page of the report. There is a subreport, text boxes, and a line for signature in this footer, in that order. If the subreport has more than 3 records, the last text box and the signature line get cut off. How do I format this footer so that nothing gets cut off? Thanks for any help or advice.
7
6872
by: Robert Adkison | last post by:
I need to print a web page. It is my preference that my users just do a File/Print from explorer. That way my users will get the print dialog that will allow them to select the fax printer. The only problem with doing this is that a header (name of the page and Page x of x) and footer (actual page filename the date) are included. I am proficient with using Crystal Reports v10 (developers version) which will create a PDF file for you to...
26
2312
by: pamelafluente | last post by:
Hi , I have a DIV element in a page with a lot of other stuff (the page can scroll several times) absolutely positioned: <div id="MyDIV" <br<brFooter </div> Just after the page load, I would like to find the lowest element in the page and set the "TOP" property of the DIV some 50 pixels below of such lowest
13
14943
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would show on only the top half of each page with whitepace at the bottom of each page. How can I get the detail to fill each page with my "half page height" report footer at the bottom of the last page? Any suggestions to solve this would be...
13
1951
by: Dan Aldean | last post by:
Hi, I use ASP.NET 2.0 and I created a stylesheet, but I don't know how to make it visible to a web form "MyWebPage.aspx" that uses the master page. I put a reference to the css in the .master but it's not visible to the newly created page. MyWebPage.aspx doesn't have a <head> <link rel="stylesheet" type="text/css" href="mystyle.css" /> </head>structure.
5
1420
by: Annie | last post by:
hello guys, I have a scenario that I am confused about ... I have a number of pages which are using a Master page ... Then I have seperate Footer user control that can reside in master page or could be kept in the content pages (still not confirmed and looking for any suggestion)
2
2913
by: Simon | last post by:
Dear reader, In case a report is a sub report the Report Header of the sub report is printed in the report but the Page Header of the sub report will not be printed. This is the same for Page Footer of the sub report. Is there a possibility to force printing Page Header and Page Footer of a sub report.
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10048
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.