Simil for VBA (1 Viewer)

Status
Not open for further replies.

Guus2005

AWF VIP
Local time
Today, 19:32
Joined
Jun 26, 2007
Messages
2,641
Tom van Stiphout created a (dll) library for the Simil function he wrote.

I can't use dll's with my customer so following the provided table i have concocted a VBA equivalent.
In the table the word "Pennsylvania" is matched with the word "Pencilvaneya" which is a 67% match. Pen(length 3), lvan(length 4) and a(length 1) appears in both strings. (3+4+1)*2/24 (total length)

The Simil function is case sensitive but if you convert both strings to lowercase you can circumvent that. You can also change Option Compare Binary into Option Compare Database in the VBA code.

Here's the sample database.

BTW it's a 2010 sample database. Look in de code repository for the code.

Share & Enjoy!
 

Attachments

  • Simil for Access.zip
    31.3 KB · Views: 1,631
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom