Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Problem link database tables Post Reply Post New Topic
Author Message
ChrisJ517
Newbie
Newbie


Joined: 21 May 2007
Online Status: Offline
Posts: 16
Quote ChrisJ517 Replybullet Topic: Problem link database tables
    Posted: 21 May 2007 at 7:09am
I'm trying to link 3 database tables.  They all have at least one common field (ACCOUNTNO).  I have linked them using this field.  However, everytime I design a report and try to use fields from different tables, the report doesn't show any data.
 
For example, (assume table names are table1, table2 and table3)if I create a report using all fields from one table, it works fine (of course).  But if use the accountno field from table2 in place of the accountno field from table 1, all the data goes away, even though the two accountno fields have the same data in both tables.  Any thoughts?
IP IP Logged
jayhawk
Newbie
Newbie


Joined: 22 May 2007
Online Status: Offline
Posts: 5
Quote jayhawk Replybullet Posted: 22 May 2007 at 10:13am

Somehow when it's joining the two tables, it's not finding an equal link. Check out how it is linking table1 and table2. Sometimes it auto-picks all of the fields that it finds between the two tables that are named the same and it will try to make a join based on all of the fields. If the primary join between the tables is the accountno field, make sure that's the only link in there(delete any other ones). Or, if that is the only join, check and make sure that the accountno field really is exactly the same in the two tables(sometimes one could have a space character at the beginning or end of the string and that would cause the join to fail).



Edited by jayhawk - 22 May 2007 at 10:15am
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.063 seconds.