Solved

Crystal Reports - problem displaying informationwith common fields

Posted on 2014-02-24
7
552 Views
Last Modified: 2014-02-25
I'm having a problem getting a particular field to display properly.  There are two tables and her is the issue:

table1.original_original_vendor_id
table1.vendor_to_send

table2.vendor_id
table2.vendor_name

The tables are linked:
table1.original_original_vendor_id ----> table2.vendor_id (full outer join)
table1.vendor_to_send ----> table2.vendor_id (full outer join)

I'm using full outer joins because there is not always data to populate each record.  Sometimes they are blank and that's okay.

The report correctly displays both table1.original_original_vendor_id  and table1.vendor_to_send, but when I drop in table2.vendor_name, nothing is displayed.

How can I get the table2.vendor_name to display when it is linked to both table1.original_original_vendor_id  and table1.vendor_to_send?
0
Comment
Question by:GStoner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39883298
You can't unless there are records where both table1.original_original_vendor_id   and table1.vendor_to_send have the same value.

You are linking to 1 record in table2 on a single field.

I think what you want is to add table 2 in twice and link it once to each table1 value.

You end up with 2 copies of table2 table2 and table2_1

Links
table1.original_original_vendor_id ----> table2.vendor_id (full outer join)

table1.vendor_to_send ----> table2_1.vendor_id (full outer join)

mlmcc
0
 

Author Comment

by:GStoner
ID: 39883406
table1.original_original_vendor_id   and table1.vendor_to_send  do have the same values.

I did not know you could add a table twice as an alias.  I followed that suggestion and liked them separately and the report works fine.

Once again - thank you for your help and quick response.
0
 

Author Comment

by:GStoner
ID: 39885496
I've requested that this question be closed as follows:

Accepted answer: 0 points for GStoner's comment #a39883406

for the following reason:

See my last comment.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 100

Expert Comment

by:mlmcc
ID: 39883888
Why accept your comment when my comment answered the issue.

mlmcc
0
 

Author Comment

by:GStoner
ID: 39885492
I accidentally selected my response instead of the actual solution.  Please cancel the close request so that I can choose the proper accepted answer.  Thanks
0
 

Author Closing Comment

by:GStoner
ID: 39885497
Thanks for your help.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39885689
No problem.  That is one reason the closure like that has a waiting period.

mlmcc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
How to increase the row limit in Jasper Server.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question