Results 1 to 4 of 4
  1. #1
    Sc0tt1e is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Jun 2020
    Posts
    15

    Unable to complete Junction Table from m-2-m form

    I have a form that pulls through the customer details from the customer table with a sub form that pulls through a list of addresses from the property table. This is a many to many relationship so there is a junction table set up to facilitate this. When I add a new address in the sub form the property table is updated but it is not pulled through in the sub form the next time I open it as the join table is not completed when this was manually input.

    I have spent a long time on google trying to work this out but can't for the life of me find the answer.

    How should the form be set up so I can add all the details into either customer or property and have all 3 tables completed?

  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,920
    With that setup, would need code to enter record in junction table.

    Consider conventional options:

    1. main form bound to Customers, subform bound to junction with combobox to select property

    2. main form bound to Properties, subform bound to junction with combobox to select customer

    3. single form bound to junction with comboboxes to select customer and property


    If need to add a new customer or property 'on the fly' during data entry, use combobox NotInList event. Common topic.
    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
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,411

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,411
    Sc0tt-davegri-v02.zip

    This is an update to the db that I provided a month ago in response to your post at that time. It will popup a form to add the new property when an unknown street address is entered.

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

Similar Threads

  1. Replies: 13
    Last Post: 05-10-2017, 12:43 AM
  2. Replies: 1
    Last Post: 12-09-2013, 04:23 PM
  3. Using form to add record to Junction table
    By SaskiFX in forum Forms
    Replies: 5
    Last Post: 03-19-2013, 12:16 PM
  4. Updating junction table in form
    By Palladian in forum Forms
    Replies: 7
    Last Post: 11-14-2012, 12:27 AM
  5. Populating Junction table from form
    By JFo in forum Access
    Replies: 18
    Last Post: 09-05-2011, 09:15 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