Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Combining two records Post Reply Post New Topic
Author Message
MikeC
Newbie
Newbie


Joined: 10 Jun 2008
Online Status: Offline
Posts: 17
Quote MikeC Replybullet Topic: Combining two records
    Posted: 29 Jul 2008 at 2:27pm

I am working on a report that pulls data from a SQL view.  The report is for pay information.

One of the views that I'm pulling data from has direct deposit information and I'm pulling it in via a sub report.  The data is structured like this:
 
Check_Doc_No    Type    Amount
55003                     C          100.00
55003                     S          100.00
55004                     C          500.00
55005                     C          150.00
55005                     S          200.00
 
Some check_doc_no's will have a single row with either C (checking), or S (savings), some will have 2 rows (1 each), and some will be on the main report but not in the sub report (the employee gets a real paycheck).
 
The check_doc_no field is the field that links it to the main report. 
 
Is there a way to have the sub report total the amount fields for multiple check_doc_no fields so I only see a total when I run the report?
 
Thanks for any help, ideas, thoughts, etc.
 
 
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 Jul 2008 at 2:44pm
Instead of using the details section in the subreport, group on Check_Doc_No and do a sum of the Amount in the group header.  Suppress the group footer.
 
-Dell
IP IP Logged
MikeC
Newbie
Newbie


Joined: 10 Jun 2008
Online Status: Offline
Posts: 17
Quote MikeC Replybullet Posted: 30 Jul 2008 at 7:01am
Thanks!  I'll give it a shot.  I appreciate your help.
 
 
IP IP Logged
MikeC
Newbie
Newbie


Joined: 10 Jun 2008
Online Status: Offline
Posts: 17
Quote MikeC Replybullet Posted: 31 Jul 2008 at 8:32am
That did solve the problem.  Thanks!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.