Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Linking items in two different columns Post Reply Post New Topic
Author Message
irayot
Newbie
Newbie


Joined: 05 Jul 2012
Online Status: Offline
Posts: 2
Quote irayot Replybullet Topic: Linking items in two different columns
     Posted: 05 Jul 2012 at 11:19am
I need help with a report that I'm designing.  There are two fields (item #) and (sales order #). I select the items to report on from the item# field and each has a corresponding sales order #.  I would like to also include additional item#'s in the report if the sales order# is the same as one that was setup to be selected previously.  Is this possible?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 06 Jul 2012 at 5:10am
In order to do this, you'll have to include a second copy of your table in the report. In the Database Expert when you try to add a table that is already in your report, Crystal will notify you that it already exists and let you know it will be "aliased".  It will then add the table with a suffix of "_1" in the name.
Assuming that your table is called "Order" and your fields are ItemNo and OrderNo, you would then do the following:
 
1.  Link from {Order.OrderNo} to {Order_1.OrderNo}
2.  Set your selection criteria based on {Order.ItemNo}
3.  Group on {Order_1.OrderNo}
4.  Use the fields from Order_1 in your details section.
 
-Dell
IP IP Logged
irayot
Newbie
Newbie


Joined: 05 Jul 2012
Online Status: Offline
Posts: 2
Quote irayot Replybullet Posted: 06 Jul 2012 at 5:20am
Thanks for your input. I will give it a try
IP IP Logged
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