Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joins to display data

Status
Not open for further replies.
Jun 17, 2010
58
US
I'm trying to figure out how to display the data that I need from 2 tables.
Below is what I have for criteria including the joins. Ref is not showing up on the report.

Table Names:
Contact1
ContHist

Links for Database Tables: (Under Database Expert)
Contact1.LastDate -> Conthist.lastdate
Full Outer Join
Not Enforced
=

Contact1.recid -> Conthist.recid
Full Outer Join
Not Enforced
=

Selection Criteria:
{CONTACT1.LASTUSER}='Brian' and {CONTACT1.LASTDATE}=today

Fields in the Report I'm trying to show:
Contact1.company
Contact1.contact
Contact1.lastdate
Contact1.lasttime
Conthist.ref

With the current information, the Ref field is blank and all other fields are populated.

I need it to populate all the fields...what am I doing wrong? Convert Database Null Values to Default is checked as well.
 
Hi,
Have you determined that that a Conthist.ref exists that matches your selection criteria?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Yes, conthist.ref does have data that matches the criteria. I have created a different report with each table only and have pulled the data by itself, but I want to combine the 2 tables into the one new report.
 
What happens if you comment out the date criteria in the selection formula? It might be affecting the joins.

-LB
 
I was able to find out the problem. By browsing through the data, I noticed that recid was not the same for all records. By name it is, but by key, it was a randomly generated number/character combination that had most of the same the info, but 8 bits were off. Given that it is not a primary key, I removed the link and linked other fields up appropriately that matched content
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top