Results 1 to 3 of 3
  1. #1
    PinkDuster's Avatar
    PinkDuster is offline Advanced Beginner
    Windows 7 64bit Access 2013 32bit
    Join Date
    Aug 2017
    Location
    Cleveland area
    Posts
    65

    How to Incorporate New Tables for Existing Database

    I have built a single-user sales and inventory database for which the Customer Information table houses Billing Address and Shipping Address data (street, city, state, etc.). Because of the nature of the business, customers may use more than one Shipping Address over multiple orders. Additionally they may use more than one Payment Method over multiple orders.



    I think the best way to implement is to create new tables for Shipping Addresses and Payment Methods but am stuck on how to link them to the Customer Information table. Don't want to create a Many-to-Many relationship anywhere, and would like to eventually have a drop-down box for a given customer to select Shipping Address (default would be either Billing Address or last address used), and for Payment Method (like PayPal, Credit Card, etc.). Additionally, in the Order Form I would need to update the new tables.

    Does this make sense? And are there other intermediate tables I need to make this work?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Each order can have only 1 shipping address and 1 payment type? Save the address ID and payment type ID in order record.

    Address table will probably need field for CustomerID so you can limit choices for user selection.
    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
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Does this make sense?
    yes. With regards linking just include a foreign key in each address record

    tblCustomers
    CustomerPK
    CustomerName

    ….

    tblAddresses
    AddressPK
    CustomerFK
    AddrLine1
    AddrLine2



    tblOrders
    OrderPK
    CustomerFK
    ShipAddressFK
    OrderDate

    With regards billing address, if there is only one per customer you can either leave in the customer table or include in the address table, but would require an additional flag to indicate this is a billing address

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

Similar Threads

  1. Replies: 2
    Last Post: 04-27-2016, 06:20 AM
  2. Incorporate UI into a Query??
    By nick404 in forum Queries
    Replies: 6
    Last Post: 06-07-2015, 09:08 PM
  3. I want incorporate a Floorplan into my form
    By ZachAtaiyan in forum Forms
    Replies: 1
    Last Post: 07-17-2014, 03:23 PM
  4. Replies: 5
    Last Post: 08-22-2013, 04:32 PM
  5. Replies: 1
    Last Post: 02-08-2012, 01:33 PM

Tags for this Thread

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