Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Total on last detail line
Message
De
16/05/2005 11:20:04
 
 
À
15/05/2005 11:10:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01014348
Message ID:
01014579
Vues:
22
Yossi,

You might be correct, making a pass through the data might be the best solution.

You could use a variable in the report to keep a subtotal, and also have the invoice total on each line of the cursor. And use print when to print the total when they are equal. But that won't work if there is a line item with zero amount at the end of the invoice.

Or, have the total number of invoice lines as a field in the query, and similar strategy as above...comparing lines printed with line total in cursor to trigger whether you are on the last line or not.



>
>This I can't do, unless I run one pass through the file and mark each last line:
>
>
>Invoice Number  Amount  Total
>10001           1,000
>                2,000
>                3,000   6,000
>
>10002           4,000   4,000
>
>10003           5,000
>                6,000  11,000
>
>GRAND TOTAL            21,000
>
>
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform