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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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.
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

Dale FyeOwner, Developing Solutions LLCCommented:
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]
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook 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 ...

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.
exp vgAuthor Commented:
Thank you everyone.
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.