Results 1 to 3 of 3
  1. #1
    HansBades is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Dec 2021
    Posts
    85

    Dropdown value automatic update upon selection

    I have two columns of comboboxes side by side. The second column value depends on the corresponding value of the combobox in the first row. Off to the right, I have a combobox that shows all the values together that are displayed individually side by side in the first and second column. When a user changes a corresponding value in the second column, the underlying table value doesn't update. If the user then clicks the combobox that shows all the values, it still doesn't show the update. The user has click on another combobox in the first two columns before the update will take effect. I have tried many event procedures to get the underlying value to update immediately upon a change in the second column combobox value but nothing is working. Any ideas what I can do? Thanks.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,798
    If these controls are bound to fields, then they don't update until you leave them - and the record doesn't update until you leave the record. In that case, maybe requery the form, but that will put you back onto the first record if this is a datasheet or continuous form. If that's a bother, you'd get the bookmark property of the current record, requery, then make the current record equal to the bookmark value.

    If your table is open and you choose a value and then moving off the field or record and activate the table window again, chances are you need to refresh the table from the ribbon. Switching to the table window often does not refresh the view, so you might think the new value isn't in the table, but it is.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,913
    Normally, the only value that should be saved from either combobox is a record ID. If you want to display related data in other textboxes, that can be done but should not be saving to record.

    Cascading combobox is a common topic. Implementation for data entry can be a bit frustrating.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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. Dropdown not capturing selection
    By carmenv323 in forum Forms
    Replies: 7
    Last Post: 04-08-2022, 09:32 AM
  2. Replies: 7
    Last Post: 12-09-2014, 12:24 PM
  3. Replies: 2
    Last Post: 11-09-2012, 02:47 PM
  4. Form dropdown selection
    By piper in forum Forms
    Replies: 2
    Last Post: 04-16-2011, 09:34 AM
  5. Replies: 2
    Last Post: 08-03-2010, 10:16 AM

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