INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!

*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.

Jobs

Crystal Reports - adding table messes up summarized field.

Crystal Reports - adding table messes up summarized field.

(OP)
Hi All,

I'm trying to write a report that displays orders and their releases when the due date is within the next 30 days.
Using the Orders table and Releases Table (and grouping both), it looks like this:
(Group Header) Order1
Release 1 - 10 pcs due 09/20/16
Release 2 - 5 pcs due 09/27/16
(Group footer) Total Due: 15 pcs.

Order2
Release 1 - 2 pcs due 09/10/16
Release 2 - 3 pcs due 09/27/16
Total Due: 5 pcs.

That has been no problem. But now I want to show the date of our last shipment. So I link in the shipments table linking it to the order table using the order number field. (Some orders have no shipments while some orders have several shipments) What I'm getting now looks OK, but the Total Due summary is off, like this.

Order1 (has 3 shipments records)
Release 1 - 10 pcs due 09/20/16
Release 2 - 5 pcs due 09/27/16
Total Due: 45 pcs.
Last Ship Date: 09/15/16

Order2 (has one shipment record)
Release 1 - 2 pcs due 09/10/16
Release 2 - 3 pcs due 09/27/16
Total Due: 5 pcs.
Last Ship Date: 09/15/16

Order3 (has no shipment records)
Release 1 - 5 pcs due 09/13/16
Release 2 - 7 pcs due 09/20/16
Total Due: 12 pcs.
Last Ship Date: 09/09/16

The total due summary is including the same release quantity for each shipment record it finds, even though it's not displayed. When there is more than one shipment record, the summarized quantity is off.

I've tried everything I can think of to remedy this, including every join setting Crystal offers, without success. I'd be grateful for any help you can offer.

RE: Crystal Reports - adding table messes up summarized field.

Hi,

One way to handle this:

Since linking to the Shipments table creates a one-to-many link, take the table back out of the main report and get the 'last ship-date' info from a subreport. Call the subreport up from the group footer with your totals, link to it by the 'order number' field. In the subreport itself, show the 'last ship-date' in the sub-report's report footer and supress the rest of the sections.

-Andy

RE: Crystal Reports - adding table messes up summarized field.

(OP)
AndyMc, thanks! That will work beautifully.
Archie

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!

Resources

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