Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group ever x number of records
Message
De
13/03/2001 20:06:48
 
 
À
13/03/2001 17:27:50
Bryan Palmer
Ramtech Building Systems, Inc.
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00484649
Message ID:
00484698
Vues:
13
>I'm writing a report for our accounting dept which has to be used in filling in a wages earned report for the state. The code that generates the data for the report creates a temporary cursor which holds all the detail records. The online report we'll need to fill in needs the data broken down and subtotaled every 23 records though. How can I 1) Get the vfp report engine to force a new page every 23 records, and 2) calculate and include a page subtotal field at the bottom of the page's records instead of at the bottom of the page. Example, last page of report may only have 5 records, but my subtotal calculation shows up at the footer instead of right beneath the last record.
>

(1) If you are not using an index (ie, you create your report based on the result of a SELECT) you can create a grouping based on INT((RECNO()-1)/23), and tell it to start each new group on a new page.

(2) Put the subtotal in the group footer rather than the page footer.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform