Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Creating hierarchical groups at same level Post Reply Post New Topic
<< Prev Page  of 2
Author Message
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 29 Nov 2008 at 10:22am
Hi

Run a union query on Creditors and Debtors table

select InvoiceId,C_Person from

dbo.Creditor

union

select InvoiceId,D_Person from

dbo.Debtor

order by 2

Invoice ID  C_Person
A111         CP111
B222         CP222
C333         CP333
A111         DP111
B222         DP222
C333         DP333
 
 
 
This will give you output as required you need to display just the second column as invoice id will be used to link the subreport as per your post.
 
hope that helps
 
Cheers
Rahul
IP IP Logged
jona
Newbie
Newbie


Joined: 14 Nov 2008
Online Status: Offline
Posts: 8
Quote jona Replybullet Posted: 29 Nov 2008 at 12:07pm
Hi thanks for yr reply:)
I have a question, you mean to create the union in the database and then do ihave to make any group by in the CR?
Where should i put the fields ? At detail Section?
And my other question is that i will not have Creditors and Debitors in column but under each other like hte example i have shown you? Does this create any problem?
 
Thanks a lot :)
IP IP Logged
<< Prev Page  of 2
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.