Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HT report for One to Many
Message
 
To
10/04/2001 13:32:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00494093
Message ID:
00494103
Views:
17
>I have two tables that are related by stock number: stockdesc and puritems. The stockdesc table has the stock items described. Puritems includes all of the stock items that are on purchase orders. I have a report that prints out the stockdesc.number, stockdesc.description, stockdesc.onhand, and the puritems.ordered, puritems.delivered. However it only prints out the first purchase order found. I want the report to sum all items that are still on order for that particular stock number and display those numbers on the report.
>
>How do I accomplish this? Thanks in advance.

Assuming that you are opening the tables in the report data environment:

1) Set the relationship to One-to-Many.
2) On the report, set up a group on stockdesc.number and move the controls out of the detail and into the group.
3) Set the calculation method to Sum for puritems.ordered, puritems.delivered through the properties for each field.

I think that should do it.
Previous
Reply
Map
View

Click here to load this message in the networking platform