473,808 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Force Page Break

76 New Member
Hello,

I have a report that returns a varying number of dollar amounts, depending on the date criteria that is entered. What I need to do is force a page break after 32 records and sum those 32. The next page should have remaining records up to 32 and sum those seperately from records on page one. What I've tried doing is putting a text box with =sum([amount]) in the page footer, but that gives me an error. Is there any way that I can do this? Please let me know if any additional information will be helpful.

Thanks,

Charlie
Dec 1 '06 #1
7 2966
NeoPa
32,579 Recognized Expert Moderator MVP
You can arrange when to throw a page after designing the report by changing the bottom margin.
TextBoxes on reports have the property, Running Sum, which should allow you to keep the running total you need.
Dec 1 '06 #2
ckpoll2
76 New Member
Thanks for your response.

I already have adjusted the margins to ensure that 32 fit onto a page, but the problem that I'm having is summing them. If, for example, I have 66 records, I want page 1, which has the first 32, to be summed. I then want page 2 with the next 32 records to be summed. Page 3 should have the remaining 2 records summed. The sum of one page shouldn't take into account records on other pages.

I'm not sure what you mean by the running sum comment. I changed the running sum characterizatio n, but that gave me strange numbers. Is it possible to put the sum in the page footer? I tried this before and got an error, but is there anything that I can do to make that work?
Dec 1 '06 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Thanks for your response.

I already have adjusted the margins to ensure that 32 fit onto a page, but the problem that I'm having is summing them. If, for example, I have 66 records, I want page 1, which has the first 32, to be summed. I then want page 2 with the next 32 records to be summed. Page 3 should have the remaining 2 records summed. The sum of one page shouldn't take into account records on other pages.

I'm not sure what you mean by the running sum comment. I changed the running sum characterizatio n, but that gave me strange numbers. Is it possible to put the sum in the page footer? I tried this before and got an error, but is there anything that I can do to make that work?
=Sum([Amount]) in the page footer should do what you want.

Is Amount the name of the control in the detail section with the amount to be summed or is it just the field name.

Is it a calculated field. You cannot sum a calculated field.
Dec 1 '06 #4
ckpoll2
76 New Member
Thanks for the response.

I tried putting it in the page footer again and it still isn't working. It gives me #Error. I know that the box works, though, because when I put it in the report footer, it works. Unfortunately, that doesn't sum the single page's data, it sums the multiple pages.

Also, Amount is the name of the control in the detail section and it is not a calculated field. Any other ideas? I'm completely stumped on this one.
Dec 5 '06 #5
NeoPa
32,579 Recognized Expert Moderator MVP
Have you tried using the Running Sum property (on a non-showing field if necessary) in the detail section?
Dec 5 '06 #6
ckpoll2
76 New Member
The running sum works, but it will carry over to the next page. What can I do to make the running sum stop after the values on the first page and restart at 0 on the second. Also, is there a way to only make the last number in the list appear rather than have all the numbers?
Dec 5 '06 #7
NeoPa
32,579 Recognized Expert Moderator MVP
This is where things get difficult as I don't know off the top of my head.
I was thinking along the lines of having a running sum AND a total field and doing a calculation using both to determine each page's sub-sum.
You can hide the field by leaving its .Visible property cleared but, if that means you can't refer to it you need to be a bit more inventive (maybe make it with white font and/or very small).
Dec 5 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6066
by: Mike Preece | last post by:
Hi I have to apologise for this in advance.. Sorry I know this is the wrong group to ask but this question I don't know where I should be asking it. What can I send from the server to a browser that will force the HTML form I'm sending to break any pre-existing frames? I've seen and tried things like having a <BASE TARGET="_top"> (or "_parent") tag in the <HEAD> but that doesn't seem to work. I know that having a link on the
6
11404
by: JSjones | last post by:
Hi all, I'm new to these boards and my javascript experience is fairly limited and basic so please bear with me. Anyway, on to the question and some background. I'm developing using ColdFusion 4.5 and a good deal of the page processing depends on whether or not a control is defined. To prevent users from clicking on a submit button more than once or clicking on another submit button before the page has finished processing I have...
11
6681
by: opt_inf_env | last post by:
Hello everybody, I have created a page consisting of two frames. The second frame is made to display "external" sites (i.e. written not by me, for example www.google.com). But I found that some "external" pages (for example www.hotmail.com ) do not "want" to be displayed in my frame. They take the whole windows. Does anybody know why? Does anybody know whether this problem can be solved, i.e. whether one can force sites to be displayed...
3
4342
by: tomb | last post by:
Please, anyone, how do you force a page break while printing the contents of a richtextbox? Is there a special code to embed in the richtextbox? Any help? Tom
2
2415
by: Yogi_Bear_79 | last post by:
I have a script that parses window.location.hash to figure out which xml file to load. The xml files populate a page on a framed site. The code works correctly to a point. If I have a seperate html page to support each xml it works. I would like to eliminate the individual html pages becuase only one should be needed. When I use one page the first link works, then the second one does nothing (doesn't refresh the frame). If I click to a...
8
12794
by: CJM | last post by:
What is the best way to force a page break when printing from a browser? A page in my application generates a series of tables which are usually less than will fit on a page of A4. Ideally I want to introduce a page break between each table when printing. I'm not sure what options I have available. I know there is some support in CSS but I'm no sure on the details or effectiveness. Thanks in advance...
2
2360
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
1
5753
by: Erik K. Schindeldecker | last post by:
Good Afternoon, I am exporting a series of datagrids to Microsoft Word, and cannot figure out how to force a page break between each datagrid. Does anyone know of a character or command I could use with Response.Write to force a page break between the datagrids? Thank you, Erik
1
2100
by: MrJangles | last post by:
Hello, I want to force a page-break if a user prints my html page. Is that possible? Thanks.
0
9721
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
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10631
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10374
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
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4331
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
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.