Results 1 to 2 of 2
  1. #1
    fnem is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    19

    Adding data to many to many tables

    I am a novice so be gentle, I'm sure this is very simple when you know how.

    I am making a database for my lawncare business. I have a table for customers Tbl_Cust with all the usual info, name, address etc and primary key CustID , I then have this linked to a table for treatment sites Tbl_TrtSite which contains TrtSiteID (primary key) TrtSiteType (type of site, from another table), TrtSiteArea (area of site) and TrtSiteDesc (description).

    Tbl_Cust and Tbl_TrtSite are linked via a junction table, Tbl_CusttoTrtSite that has TrtSiteID and CustID as the primary keys.



    I have a form, Frm_AddCust where I add a new customer, at the same time I want to add their treatment sites, could be more than one and will have a type, area and description for each, I imagine I do this through use of a subform but am a bit out of my depth knowing exactly how to go about it with the junction table etc.

    Any and all help gratefully received. Thanks.

  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,521
    Try a subform bound to the junction table, with master/child links on the customer field.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Option Groups and Adding Data to Tables
    By ipitydafool in forum Forms
    Replies: 5
    Last Post: 05-02-2011, 01:59 PM
  2. Collecting data off a form and adding to 2 tables
    By Phil Knapton in forum Access
    Replies: 1
    Last Post: 01-04-2011, 10:58 AM
  3. Adding data to tables using queries
    By HunterEngineeringCoop in forum Queries
    Replies: 3
    Last Post: 10-28-2010, 12:42 PM
  4. Adding data to tables
    By HunterEngineeringCoop in forum Access
    Replies: 3
    Last Post: 10-19-2010, 12:01 PM
  5. Automatically Adding New Data to Tables
    By aquarius in forum Import/Export Data
    Replies: 1
    Last Post: 09-15-2010, 07:27 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