Results 1 to 2 of 2
  1. #1
    lb.access is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2018
    Posts
    1

    Question Using a junction table to populate synchronized Combo boxes?

    Hi,

    I have 2 Combo boxes that I want to synchronize using data from 3 tables:

    Table 1: tblLocation
    LocationID, LocationName

    Table 2: tblPlatform
    PlatformID, PlatformName

    Table 3: tblPlatformDetails
    LocationID, PlatformID

    Table 3 is the Junction Table to create a many to many relationship.

    I managed to get the two combo boxes to synchronize using the following query:

    SELECT tblPlatformDetails.PlatformID
    FROM tblLocation INNER JOIN tblPlatformDetails ON tblLocation.LocationID = tblPlatformDetails.LocationID
    WHERE (((tblLocation.LocationID)=[Forms]![frmLogEntry].[cboLocation]));


    The problem is the second combo box is auto-populated with PlatformID after Location is selected but I would like it to be populated with PlatformName instead.

    I am a newbie and struggling to figure out how to do this. Any help would be most appreciated.



    Thanks in advance

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    rather than tblLocation you need to include tblPlatform in your query, then you can select the name

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

Similar Threads

  1. Auto Populate new record in Junction Table.
    By Deepak.Doddagoudar in forum Forms
    Replies: 6
    Last Post: 03-31-2018, 12:32 PM
  2. How to use Junction Table to populate DB
    By Sorbz62 in forum Forms
    Replies: 1
    Last Post: 10-02-2011, 05:45 PM
  3. Replies: 11
    Last Post: 08-29-2011, 01:45 AM
  4. Replies: 3
    Last Post: 12-17-2010, 06:31 AM
  5. Synchronized Combo Boxes
    By LesleaOH in forum Forms
    Replies: 34
    Last Post: 10-10-2009, 09:20 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