Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total on last detail line
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014348
Message ID:
01014564
Views:
14
Create a data group on Invoice Number. In the Data Group Footer, print the amount and mark it as SUM, reset on Invoice Number. Then create a Summary band and print the amount and mark it as SUM, reset on EndOfReport.


>Hi All:
>
>How can I produce a report that has total information on the last detail line?
>
>Easy Report to do for invoices with multiple line items:
>
>
>Invoice Number  Amount
>10001           1,000
>                2,000
>                3,000
>TOTAL           6,000
>
>10002           4,000
>
>10003           5,000
>                6,000
>TOTAL          11,000
>
>GRAND TOTAL    21,000
>
>
>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
>
>
>Thanks!
>
>Yossi
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform