Avatar of jack3_99
jack3_99Flag for United States of America asked on

Linking Access Tables with Partial Item Matches

We have a table (tblItemList) that has incomplete UPC codes.  I want to match this table with a table (tblMasterList) that has complete UPC Codes.

I want the tables to join any time there is even a partial match.  For example, if the partial UPC Code contains  37384000, it should match to 20737384000213, 20737384000107, 20737384000060, etc.  

Attached is an example of the database.  The query qryItemMatch displays all of the records in tblItemList and only those records that match exactly to tblMasterList.   I tried to include wildcards such as the following; however, then nothing matched.

FROM tblItemList LEFT JOIN tblMasterList ON ("*"& tblItemList.PartialUPC &"*") = tblMasterList.UPC

I appreciate any help you can provide.

Thank you,
Microsoft ApplicationsMicrosoft AccessMicrosoft Office

Avatar of undefined
Last Comment

8/22/2022 - Mon
Rey Obrero (Capricorn1)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

This is perfect!  Thank you for your help
Your help has saved me hundreds of hours of internet surfing.