Results 1 to 4 of 4
  1. #1
    #1Newbie is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2013
    Posts
    3

    Unmatched Addresses Query

    Hello, I am trying to compare mailing addresses between two tables.
    Table 1: Products Shipped (Contains Product #'s and addresses they were shipped to)


    Table 2: Correct Address (Contains all Product #'s and their correct mailing address)

    Q1. Is this the best approach?:
    Query table 1 to concatenate Product number, street #, city, & state
    Query table 2 to concatenate the same as above.
    Create a query that joins table 1 & 2 by the concatenated columns & change the join to show all table 1 records and only records from table 2 that match
    Query the results to show all fields where the concatenated address column from table 2 is blank ( = " ") (For some reason is null doesn't work)

    Q2.If the above is the best approach, why do I receive more records in the results then what is listed in table 1? I need the results to match the total of items in table 1. (There currently isn't a primary key set up & I haven't grasped that concept yet; if that is the cause of all the extra records pulling in, can you please explain which columns should be the primary key & why?

    Q3. I tried the unmatched query, but as stated above, no results generate because "is null" doesn't work. Is that because it's reading the conc formula even though the cell is blank? (Selecting = " " works)

    Thank you for taking the time to read and respond!!!

  2. #2
    rzw0wr is offline I will always be a newbie
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Indiana
    Posts
    479
    I would suggest that you read a few articles on table normalization before going any further.

    Sounds like your tables are not normalized at all.

    Dale

  3. #3
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    This link may be helpful in understanding RDMS structure and table normalization

    http://www.deeptraining.com/litwin/d...aseDesign.aspx

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    It isn't clear to me what exactly you have and what you are trying to do. As Dale and Alan have suggested, some reading/research with concepts and Normalization may be a good starting place.

    In general terms, you attempt to get "authoritative tables" and use those for references (the values are considered correct). For example Addresses - You have a table of Customers with their Addresses. When you get a new Order from aCustomer and you want to ship a product to them, you refer to their latest authoritative Address. If during the ordering process, you are informed that their Address has changed, then you update your address table. But you start with the latest authoritative record for that Customer. You will be in constant confusion mode if you have a ShippedTo Address and continue to attempt a reconciliation with the "Correct Address".

    Here's a link to a tutorial that may help
    http://www.rogersaccesslibrary.com/T...lationship.zip

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

Similar Threads

  1. Unmatched Query Qizard.
    By deepanadhi in forum Queries
    Replies: 7
    Last Post: 05-15-2012, 03:50 AM
  2. VBA to Send E-mail to Addresses from Query
    By alpinegroove in forum Programming
    Replies: 4
    Last Post: 12-23-2011, 09:45 AM
  3. Replies: 1
    Last Post: 12-08-2011, 01:52 PM
  4. Replies: 2
    Last Post: 07-29-2011, 12:33 PM
  5. Unmatched query on 1 table
    By tmcrouse in forum Access
    Replies: 7
    Last Post: 06-01-2011, 08: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