Results 1 to 7 of 7
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409

    Find match between two similar string

    Hi,


    the title looks like an easy thing, instead the problem is that i have my list of cities (comuni.comune) and i have another list from a different source (filiali) that has the same values (filiali.des_com_ita); they are a list of italian cities.

    the problem is the way accent is written, in the first case they used letters like " à ", " è " etc, in the second case the uses " a' "," e' "; in a few cases there are other differencies like "bolzano" and "bolzano-bozen" but this is not a problem, i think

    to resolve the issue i made a column in "comuni" table called "comunifiliali", in which i want to insert the same city present in "Filiali" table but written in the other way (e.g. Comuni= ciriè, Filiali=cirie')
    is there a way without losing my mind to do that?

    i've already inserted the cities from Filiali in comuni.comunifiliali that are written the same way
    thanks


    sorry, i couldn't upload the file

    https://hhfinanza-my.sharepoint.com/...a-GaQ?e=fTjyWh

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    I can see a zip file and a Test.accdb but nothing is live to allow download.
    Can you set up a regular zip file that readers can access?
    I don't use oneDrive.

  3. #3
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    i think it's too big...

    https://www.mediafire.com/file/zxon4.../test.zip/file

    i uploaded to mediafire

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,451
    As a suggestion create a new column in each table and populate with the city name replacing the accented chars with unaccented ones - then match on those

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,992
    There are various methods of searching for similar strings including Soundex, Simil and Levenshtein distance.
    This link may be helpful Matching logic | Page 3 | Access World Forums (access-programmers.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,743
    Diegomarino,
    You might extract some sample records and send those as a zip. 12+mb is more data than necessary for resolving the issue. Try CJ_London's suggestion as per post #4.

  7. #7
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    thank you very much all. even if i solved just replacing i see a lot of interesting stuff about serching similar value

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Match two similar string in a query
    By lmarconi in forum Queries
    Replies: 14
    Last Post: 06-26-2021, 10:06 AM
  2. Replies: 3
    Last Post: 08-22-2018, 11:05 AM
  3. Replies: 5
    Last Post: 06-15-2018, 03:14 PM
  4. Replies: 2
    Last Post: 12-26-2016, 04:27 PM
  5. Match similar values
    By enjiel in forum Queries
    Replies: 6
    Last Post: 04-09-2014, 06:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums