Results 1 to 3 of 3
  1. #1
    wjm821 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2021
    Posts
    6

    cascading combo boxes

    I can find cmbo1State combo2City. What I'm trying to do is combo2 only show what hasn't been selected.

    tblPlayer: fields Player, PositionType, PlayerID(pk)


    tblPosition: PositionType, PositionID (pk) nine positions.

    cmbo1 selects Player1, cmbo2 selects Catcher when I go back to cmbo1 Player1 cmbo2 needs to show 8 positions

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    make a OUTER join query to show positions not yet picked
    place both tables in a query, join on POSITION,
    dbl-click the join line, set to:
    SHOW ALL RECORDS IN t.POSITIONS.

    then set the criteria:
    (tPlayers.Position) Is Null
    to show ONLY the missing positions.


    SELECT tPlayers.Position, tPositions.Position
    FROM tPlayers RIGHT JOIN tPositions ON tPlayers.Position = tPositions.Position
    WHERE (((tPlayers.Position) Is Null));

  3. #3
    wjm821 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2021
    Posts
    6
    Thank you Thank You!!!!!

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

Similar Threads

  1. 3rd Cascading Combo Boxes
    By captiangvp in forum Forms
    Replies: 29
    Last Post: 10-04-2021, 02:40 PM
  2. Cascading Combo Boxes
    By Anil Bagga in forum Access
    Replies: 7
    Last Post: 04-21-2020, 04:25 AM
  3. Cascading Combo Boxes
    By JCW in forum Programming
    Replies: 4
    Last Post: 04-02-2014, 05:05 PM
  4. Cascading Combo boxes
    By finsmith in forum Forms
    Replies: 10
    Last Post: 02-12-2013, 09:37 AM
  5. Cascading Combo Boxes
    By gjw1012 in forum Access
    Replies: 1
    Last Post: 07-25-2009, 04:59 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