Results 1 to 4 of 4
  1. #1
    123seven is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2011
    Location
    Aurora, ON Canada
    Posts
    22

    tblAddresses OR address fields in tblCustomers

    HI - newly registered with the first of many questions - thanks in advance for your time. I'm working on a new db for an existing business with currently 1500 customers (all client detail available in quickbooks) and 700 new sign ups, introduced at consumer shows, currently stored in the first draft of db.



    The business supplies garden soil products directly to homeowners but also to designers & landscapers. For the most part - say 90% - the deal is 1 customer - maybe many orders, but usually same address (the odd "deliver to my mom's house" etc, occurs) with the exception of the biz clients whose orders will routinly require a different ship address (but origianl customer address for billing).

    My issue is should i keep the customer address info (currently in tblCustomers) where it is and use a yes/no field in frmOrders, to indicate where an alternate ship address is required (stored in say tblAlternateShipAddress), or should i do like northwinds and include ship address fields directly in tblOrders (that usu is just copying customer address info over from 'customer', on the orders form) - OR... one table for all addresses.... (shying from this approach ...and northwinds!!) Any solid direction will be seriously appreciated .. Cheers

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Welcome to the forum.

    If a customer has many addresses (of whatever type), you have a one-to-many relationship which requires 2 tables. Now if you want to further identify the type of address, a billing address, a shipping address or whatever, you can add a field that distinguishes the type

    tblCustomers
    -pkCustomerID primary key, autonumber
    -txtCustomerName


    tblCustomerAddress
    -pkCustomerAddressID primary key, autonumber
    -fkCustomerID foreign key to tblCustomers
    -txtAddress
    -txtCity
    -fkAddressTypeID foreign key to tblAddressTypes

    tblAddressTypes (would include Billing, Shipping etc.)
    -pkAddressTypeID primary key, autonumber
    -txtAddressType

  3. #3
    123seven is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2011
    Location
    Aurora, ON Canada
    Posts
    22
    mmmmm - no shortcuts for me today ... thank you jz ..just needed to be told!

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome

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

Similar Threads

  1. Custom Fields from OUtlook Address book
    By Mikeydee135 in forum Import/Export Data
    Replies: 0
    Last Post: 03-22-2011, 07:46 AM
  2. Get Mac Address
    By Mclaren in forum Programming
    Replies: 4
    Last Post: 05-02-2010, 12:34 PM
  3. how to validate the first line of address
    By dunners92 in forum Access
    Replies: 1
    Last Post: 03-15-2010, 09:53 PM
  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