Results 1 to 2 of 2
  1. #1
    Jimjr is offline Novice
    Windows 11 Access 2019
    Join Date
    Jun 2024
    Posts
    6

    Refresh a query to fill in a combo box

    I have an update subform with 3 fields per row - "Trust", the category the Trust belongs to, and the "queues" available for that category. The user can add, chg or delete rows.


    There's about 30 Trusts, each belongs to 1 of 3 categories. Each category is allowed 4 or 5 "queues" specific to the category.


    The "Trust" is selected from a combo drop-down list from a table. The category is in a text box comes from the same table and is locked.


    I want the drop-down for the queues to comes from a query -


    Code:
     SELECT [Queues list].Queue, [Queues list].Category
    FROM [Queues list]
    WHERE ((([Queues list].Category)=[Forms]![Update Trust Reviewers]![Reviewers Trusts table subform]![category]));

    It works correctly on the first row, but the combo box of queues does not change if the next row has a Trust in a different category. so I need to refresh the query somehow when the user clicks the next line. Somehow specifying the row being clicked?

    TIA

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    In form Current event and/or combobox GotFocus.

    Me.MyCombobox.Requery

    Review https://stackoverflow.com/questions/...t-show-its-val
    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. Replies: 3
    Last Post: 10-22-2014, 09:44 AM
  2. Replies: 4
    Last Post: 10-13-2014, 09:20 AM
  3. Replies: 3
    Last Post: 06-09-2013, 05:35 PM
  4. Replies: 4
    Last Post: 05-04-2012, 02:03 AM
  5. Combo refresh
    By gafoor in forum Forms
    Replies: 0
    Last Post: 03-02-2011, 04:24 AM

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