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
7 2942 NeoPa 32,556
Expert Mod 16PB
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.
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 characterization, 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?
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 characterization, 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.
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.
NeoPa 32,556
Expert Mod 16PB
Have you tried using the Running Sum property (on a non-showing field if necessary) in the detail section?
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?
NeoPa 32,556
Expert Mod 16PB
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).
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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
|
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...
|
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...
|
by: comp.lang.php |
last post by:
class ReportGenerator {
function ReportGenerator() {}
/**
* Generate the HTTP headers necessary for this file type. Can be
called statically
*
|
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...
|
by: MrJangles |
last post by:
Hello,
I want to force a page-break if a user prints my html page. Is that possible?
Thanks.
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |