Results 1 to 2 of 2
  1. #1
    midovicchajy is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Oct 2018
    Posts
    11

    Many To Many Relationship

    I have amain Form Called " Customer " and 2 SubForms
    First Called "Contacts"
    Second Called " Contact Details"

    Every Customer Have and Unique ID
    Every Customer Have Multi contacts
    Every Contact Have Multi Way To contact ( Multi Phone ( Continous SubForm) , Multi E-mail( Continous SubForm) , )

    Best Way To do this What in RelationShip
    I want Each customer Have Multi contact
    then when I change contact Changes The subforms ( phones and e-mails )



    Any Ideas Or Help Please

  2. #2
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    This is how I would set up the tables/ forms:


    tblCustomers
    ==========
    CustomerID_PK (unique ID - usually Autonumber)
    CustLastName
    CustFirstName
    'other info

    tblPhoneNumbers
    ==============
    PhoneNumberID_PK (Autonumber)
    CustomerID_FK (Long) [Foreign key to customer]
    PhoneNumber )Text)
    PhoneType (Text - ex. Home/Cell/Fax/etc)
    'other fields as required/needed

    tblEmailAddresses
    =============
    EmailAddressID_PK (Autonumber)
    CustomerID_FK (Long) [Foreign key to customer]
    EmailAddress (Text)
    EmailComment (Text)
    'other fields as required/needed



    Main form record source would be query based on tblCustomers.
    Sub form 1 record source would be query based on tblPhoneNumbers.
    Sub form 2 record source would be query based on tblEmailAddresses.


    Main form detail section - customer info
    Main form footer has the two sub forms
    Set Master/Child links to CustomerID_PK/CustomerID_FK for each sub form.

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

Similar Threads

  1. one to many relationship
    By mountainclimber in forum Access
    Replies: 8
    Last Post: 08-04-2015, 10:53 AM
  2. A One to Many relationship
    By exo in forum Queries
    Replies: 6
    Last Post: 06-09-2015, 12:52 PM
  3. Replies: 3
    Last Post: 03-19-2015, 05:26 PM
  4. Replies: 1
    Last Post: 12-06-2014, 12:49 PM
  5. Replies: 1
    Last Post: 12-03-2014, 11:26 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