Access - Join not revealing accurate results between two tables

I have two tables - and am joining on two fields with the same name:

Last Name
First Name

I have cross-checked, and unfortunately, only a portion of the records across these two tables link and are in the output result. The other names look exactly the same - but are not in the output.

Unfortunately I cannot upload examples.

I did trim the fields and truncate the names prior to this join.

Can you please offer why this may be happening?

Thank you
exp vgAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ThomasMcA2Commented:
It may be impossible to solve your problem without being able to see the data. However, if you could post your query, we can start by verifying that your syntax is logical.
0
aikimarkCommented:
If you know of some intersection data that isn't appearing, but should be, then write and run two separate queries against these two tables with the same selection criteria.

Example  Looking for James Brown
Where [Last Name] = "Brown" and [First Name] = "James"

Open in new window

0
Dale FyeCommented:
So, the first thing to do would be to check for unmatched values.

SELECT A.[Last Name], A.[First Name], B.[Last Name], B.[First Name]
FROM Table1 as A
LEFT JOIN Table2 as B
ON A.[Last Name] = B.[Last Name] AND A.[First Name] = B.[First Name]

This will show you all of the matches and mis-matches (there will be no values in the right hand columns) to records in Table1
You would then reverse this JOIN to identify all of the records in Table2 that are not in Table1

SELECT A.[Last Name], A.[First Name], B.[Last Name], B.[First Name]
FROM Table2 as A
LEFT JOIN Table1 as B
ON A.[Last Name] = B.[Last Name] AND A.[First Name] = B.[First Name]
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
The other names look exactly the same
You might find there to be some subtle differences between those names - for example one might list "Scott" where the other might list "Scott " (a trailing space) or " Scott" (a leading space). Access won't consider those to be a match.

If you've been using the suggestions on your other questions to parse out your names, you might try a final query to remove any leading or trailing spaces:

UPDATE YourTAble SET FName = Trim(Fname), LName = Trim(LName)

Obviously make a backup first ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Helen FeddemaCommented:
It is best to link on ID fields, rather than text fields such as name components.  Do your tables have AutoNumber IDs?  Slight differences in spelling of names can cause errors in linking, as Scott pointed out.  If you link on unique key fields, this won't happen.  See my Access Archon article on Fixing Normalization Errors for information on this problem, and how to fix it.

http://www.helenfeddema.com/Files/accarch229.zip
0
exp vgAuthor Commented:
Thank you everyone.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.