Results 1 to 5 of 5
  1. #1
    cmf0106 is offline Novice
    Windows XP Access 97
    Join Date
    Dec 2009
    Posts
    6

    Query to Remove Similar Addresses (Picture)

    I have a very large database with over 50,000 records. I am querying property addresses such that if the property address and owner address are a mismatch, the query will return a result. I am using Owner address <> [Property Address] to run the query. It works great except for typos present from the source database file.

    For example, using the image below
    owner address: 1323 "Cimarron Trl"
    the property address: "1323 Cimarron Tr"
    The only reason the query returns this is as a mismatch is because one is missing the "l" in "trl".

    or another example
    Property Address: "4706 NE Loraine St"
    Owner Address: "4706 E Loraine St"
    Again the only reason for this mismatch is because one contains "NE" and the other is missing the "N" in "NE".



    Is there a query I could run that could account for these typos?

    Attached Thumbnails Attached Thumbnails database example.png  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    Essentially, no.

    That is the issue with erratic inconsistencies. If it was always a case of the missing 'l' then that could be dealt with. But one record is missing the 'l' and another is missing the 'N' (or the N is wrong in the other) and another transposes digits in the building number and some have P.O.Box opposed to building address (which is obviously not an error). Access can't read minds. Fixing the errors can be a tedious and time-consuming effort, if it is really necessary. Is it? Why?

    You could do a Find/Replace for every Tr and replace with Trl (or the reverse if you really want Tr). Do that with every error revealed by reviewing the query records, one at a time. Careful, could end up creating worse errors. Consider this address:

    4534 Trojan Tr

    could result in

    4534 Trlojan Trl
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Further to June7's comment --be very careful with Find and Replace as she pointed out. Isolate what you're intending to find/replace.
    eg " Tr " vs "Tr" Note the spaces.

    I'm curious of a "premise" in your database:::: Owner address = property address

    Certainly someone could own more than 1 property and it would seem to present an anomaly in your database, since the owner could not reside at all properties.

    I have had to correct addresses and it can be tedious to impossible. There are Postal standards for addresses and short forms/abbreviations for street types.
    Things like Lane, Gardens, Terrace.... have abbreviations, but these are useless if not applied during the input phase.

    You can do some things like check the first 10 characters for equality, or the first 15.. or the last 8. It doesn't solve the issue but can help quantify the amount of work involved.

    There is nothing short of a miracle that could resolve
    7659 Cypress Ct and 420 Simmons Dr

    Good luck.
    Last edited by orange; 10-06-2013 at 05:36 PM. Reason: spelling

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862


    I was thinking something like maybe a Mid function followed up with an Intern(PleaseComeHere) function

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    HaHa! Intern, i.e. slave labor.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Unmatched Addresses Query
    By #1Newbie in forum Queries
    Replies: 3
    Last Post: 06-03-2013, 06:54 AM
  2. Replies: 10
    Last Post: 11-04-2012, 07:18 AM
  3. VBA to Send E-mail to Addresses from Query
    By alpinegroove in forum Programming
    Replies: 4
    Last Post: 12-23-2011, 09:45 AM
  4. Replies: 2
    Last Post: 07-29-2011, 12:33 PM
  5. matching similar addresses
    By TheShabz in forum Access
    Replies: 5
    Last Post: 10-05-2010, 10:38 AM

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