Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


One to many link and order total

One to many link and order total

One to many link and order total

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?


RE: One to many link and order total

Well I corrected this by removing the notes file and then putting the notes in a subreport thumbsup2

RE: One to many link and order total

Another way you could do it is using Running Totals to Sum on Change of Field.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close