How to Place Totals on Report's Last Page in Page FooterLast reviewed: January 23, 1998Article ID: Q130865 |
2.50x 2.60 2.60a 3.00 | 2.50x 2.60 2.60a | 2.50b 2.50c 2.60a
WINDOWS | MS-DOS | MACINTOSHkbtool kbcode The information in this article applies to:
SUMMARYWhen using the Report Writer, you can use the Summary band to place information at the end of the report on the bottom of the last page where the page footer is located. By design, the Summary band places information at the end of a report, but the information is positioned right after the last record printed. However, you may want to place the information at the bottom of the page where the page footer is located. This article describes how to accomplish this.
MORE INFORMATIONDo not use the Summary band. Instead, place the expressions that hold the summary information on the page footer with a conditional IIF statement in the expression that checks for the last record of the table. Below are the steps needed to place the summary information in the page footer section. Before creating or running the report, ensure that the rectotal variable used in the conditional IIF below is already set to the total number of records that need to be printed. To do this, type the following command in the Command window to get the total number of records in a table:
rectotal=RECCOUNT()If the report is going to use a FOR clause, use the same FOR condition in the COUNT command to store the number of records to be printed in the rectotal variable. For example, use this command:
COUNT FOR fieldname="whatever" TO rectotal Step-by-Step Example
Method 1 for FoxPro for Windows versions 2.x
NOTE: If you are using Visual FoxPro and the Print Area is set to "Whole Page" in the Page Setup dialog box, the information in the page footer may not appear. Sliding the Page Footer bar down one or more lines in the Report Designer makes the Page Footer information appear. Method 2 for FoxPro for Windows version 3.x
|
Additional reference words: 3.00 VFoxWin 2.50 2.50a 2.50b 2.50c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |