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!

How to link 2 files so that only non-matching records will display 3

Status
Not open for further replies.

ewarr

Technical User
Nov 25, 2008
31
0
0
US
I need to link 2 files together and only display the "new" resellers that were not in the Master Reseller file. This report will be used to capture the non-matching records only. I can't figure out the correct linking to do this.

File 1 = Master Resellers File
File 2 = Daily Resellers (this file may include new resellers that were not in the Master Resellers File)

I only want to display the "new" resellers.

Fields:
Reseller IC#
Reseller Name
Reseller City
Reseller State

Same fields are in both files. Can anyone help? I've tried every linking scenario...Thanks!
 
Hi,
Depending on your database ( and link options) try a NOT EQUAL link between Daily ----> Master on IC#, this should show only those Daily resellers NOT in Master.

Perhaps a better way would be to create the report from a Command like:
Code:
Select * from Daily
MINUS
Select * from Master

This will leave only those in Daily Only in the dataset.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I tried this and it still doesn't work. Do I use inner or outer join? Enforced, not enforced? Does the link point to the Master file or Daily file?
 
Hi,
I would try the Command option, but to use linking
As I indicated,link From Daily to Master, then set the Link type to != ( or <>) - Enforced

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
You could also use a left join FROM Daily Resellers TO Master Resellers, and use a record selection formula of:

isnull({MasterResellers.ID#})

-LB
 
changing the join type would be the best option, if you do not know about "joins",, google it, will give you good info.
 
lbass - I tried your approach and it worked great! Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top