Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One to many link and order total 1

Status
Not open for further replies.

Bennie47250

Programmer
Nov 8, 2001
515
US
Using Crystal 7.0

Having a problem with a one to many relationship.

Linking our order file (one side) to a notes file (many side) an order can have 0 to 15 notes.

To suppress the duplicate order records I have created a group that groups by the product number (from the order file) and put the record in the group header. That took care of returning to many records.

In the group header I’m showing the qty purchased and the selling price of the item and them I calculate the total for that line (qty * price) (Formula named LineTotal).

For this example I have 2 line items we are selling one is $10 And the other is $20

To show the grand total for the order, I right mouse clicked on the Line Total and selected Insert Grand Total but the grand total is showing $90 as the order has 3 lines of notes.

How would I go about showing the correct total of only $30?

Thanks
Bennie47250
 
Well I corrected this by removing the notes file and then putting the notes in a subreport [thumbsup2]
 
Another way you could do it is using Running Totals to Sum on Change of Field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top