Results 1 to 4 of 4
  1. #1
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86

    Importing to a many to many relationship

    Is there a way to import into a many to many relationship where the link table gets populated automatically?

    Thank you for the help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    You want to import data into multiple related tables? This can get complicated. Would need a lot more info to advise specifics.

    But essentially, yes, the linked table will be populated with import operation.
    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
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86
    Thank you for the reply. Below is the relationship. A part number and description on the tblParts. Then location in the tblLocations. One part many locations and one location many parts. I have a excel sheet of parts and there locations. How do I import so they can auto-populate the link table. Is making the link table in excel going to be easier?
    Click image for larger version. 

Name:	link.PNG 
Views:	10 
Size:	6.6 KB 
ID:	38184

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Are PID and LID autonumber fields in tblParts and tblLocations?

    If so, difficulty with import is getting the PID and LID values into the new link records.

    If Excel worksheet is simple, can certainly set a link. Exactly what data is in the Excel sheet? Are these parts and locations already in tblParts and tblLocations?
    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.

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

Similar Threads

  1. How to set the relationship
    By Erictsang in forum Forms
    Replies: 5
    Last Post: 08-05-2017, 11:31 PM
  2. Replies: 3
    Last Post: 03-19-2015, 05:26 PM
  3. Replies: 1
    Last Post: 12-06-2014, 12:49 PM
  4. Replies: 0
    Last Post: 03-06-2012, 11:55 PM
  5. Replies: 5
    Last Post: 11-30-2011, 07:02 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