Results 1 to 5 of 5
  1. #1
    aussiegrl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2016
    Posts
    12

    Address Database need to combine names if address field is the same

    I have a straightforward address database with:

    ID (autonumber)
    First Name
    Middle Name
    Last Name
    Address
    City


    State
    Zip

    I need to create a query or something to combine first names with last name if the address is the same. Example:

    Bob J. Smith 1515 Canopy Lane Hope MI 48642
    Linda R. Smith 1515 Canopy Lane Hope MI 48642

    So these are two records in the database and I want to create mailing labels, but want it to be addressed as:

    Bob & Linda Smith
    1515 Canopy Lane
    Hope, MI 48642

    Can anyone help me with this? I know it can't be too difficult, but I am stumped. THANK YOU!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    There are people who have built careers trying to cleanse data.

    Perhaps you could post 50 records as a sample of the data you have.
    Do you have variations in Street, Str, St., Lane Ln, PO Box , P.O. Box#..... 55 Apple Street; 55 Apple St, Apt D;
    How do you know what makes up the name or the address etc?
    You may find names like Oscar de la Hoya, Ali vant Goor --- that will/could pose a logic issue.

    In your sample, how do you know that Bob and Linda are related/a couple?
    Could be Father/daughter; mother and son.....

    You may have better data than most, but I've seen a lot of these requests that are far from "I know it can't be too difficult".

  3. #3
    aussiegrl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2016
    Posts
    12
    They are only spouses as that is what the database was created with. There are about 5500 duplicate records when I did a duplicate record query on the address field. After a quick scan all addresses match as far as variation goes. It is definitely turning out to be more difficult then I thought. I figured I could write some kind of IF statement like: IF Address is = then Concatenate FirstNames, but I can't figure out how to make that work. UGH!! Coding is definitely not my strong suit. I may have to break down and do it by hand.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    OK, can you post a copy of your data base. You may have to zip it.

  5. #5
    bridgeo730 is offline Advanced Beginner
    Windows XP Access 2016
    Join Date
    Jan 2018
    Posts
    33
    I would be interested in knowing how this was solved!

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

Similar Threads

  1. Database email notification 'from' address
    By jtm013 in forum Programming
    Replies: 3
    Last Post: 12-23-2014, 01:36 PM
  2. Replies: 1
    Last Post: 10-31-2014, 02:27 PM
  3. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  4. Replies: 1
    Last Post: 10-07-2009, 08:15 AM
  5. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 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