On Sat, 24 Sep 2011 20:12:44 -0700 (PDT), Mickie <(E-Mail Removed)>
wrote:
>Thank you for your reply; What I mean is in the Vendors table the
>First Name field could have a name in it such as Audio Professionals
>while the EPLS table's Name field could be Audio Professionals USA.
>I need to be able to match any combination in the EPLS table against
>that of the Vendors table.
>Meaning select Vendor.First Name and compare it to EPLS.Name column
>and if there are any similarities return the results.
Well, taken literally, "XYZ Pro" and "ABC INC" are similar; they both contain
a blank. Would sharing a single letter be "similar"? Three letters? A "word" -
but how do you define a word? Remember, computers are very, very literal
minded: they do "identical" really well, but "Similar" is much tougher.
My suggested query would work in your example, but it would not work if you
reversed the two fields. You can get PART of the solution by doing it both
ways:
[EPLS].[Name] LIKE "*" & [Vendor].[First Name] & "*" OR
[Vendor].[First Name] LIKE "*" & [EPLS].[Name] & "*"
but that will still miss matches that are obvious to a human but not to a
computer: e.g. "Audio Professionals USA" and "Audio Professionals United
States". Neither is a proper subset of the other.
There are "fuzzy search" and "text similarity" algorithms that can help, but
there will still be a need for a USB interface - "Using Someone's Brain".
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also
http://www.utteraccess.com