Results 1 to 4 of 4
  1. #1
    tostgulen is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    9

    Question Multiple adresses for a customer

    Hi

    I have a database where the customers can have multiple addresses. Billing address, visiting address, post address, etc. I have a customer table and a table containing Norways ZIP codes and corresponding city. I realize that what I need is a many-to-many relationship so I created a new CustomerZIP table. My problem is: how do I connect the right zipcode to the right address type?

    This is probably a really simple problem, but I cant quite get it to work. I would like the end "product" to automatically look up city to the correct address.


    Click image for larger version. 

Name:	CustomerZip.PNG 
Views:	19 
Size:	15.6 KB 
ID:	10601

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I may be missing something, but I don't see the purpose of the middle table; I'd have the zip in the customer table. In that design, you would add the zip table to a query 3 times, and join each zip in the customer table to a different instance of it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    I would use a different table arrangement. See attached db.
    Attached Files Attached Files
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    tostgulen is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    9
    Quote Originally Posted by Bob Fitz View Post
    I would use a different table arrangement. See attached db.
    Excellent Thank you so much! That will work.

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

Similar Threads

  1. Run Report For Each Customer
    By rivergum_23 in forum Queries
    Replies: 1
    Last Post: 04-29-2012, 12:53 PM
  2. Replies: 1
    Last Post: 12-24-2011, 08:48 AM
  3. Add activity for each customer
    By nostr4d4m in forum Queries
    Replies: 11
    Last Post: 03-25-2011, 09:08 AM
  4. Sorting by customer
    By eibooo in forum Queries
    Replies: 1
    Last Post: 05-25-2010, 12:00 AM
  5. Replies: 1
    Last Post: 08-19-2009, 01:14 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