Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8430491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:36:23+00:00 2026-06-10T05:36:23+00:00

How do I force an update when the ComboBox value is changed in code.

  • 0

How do I force an update when the ComboBox value is changed in code. Below is piece of code I have tried but does not seem to work

 If (Not Mid(sCode, 1, 2) = ddlLevelID1) Then
     ddlLevelID1 = Mid(sCode, 1, 2) 'force change/force AFTER_UPDATE event to run. 
 End If 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:36:25+00:00Added an answer on June 10, 2026 at 5:36 am

    Assuming ddlLevelID1 is the ComboBox:

    ddlLevelID1.value = foo
    

    will change the value. I do not believe you can link a value displayed in a ComboBox to a variable value without pushing changes up to the userform after the value is changed.


    Regarding the AfterUpdate method, from msdn:

    Changing data in a control by using Visual Basic or a macro containing
    the SetValue action doesn’t trigger these events for the control.
    However, if you then move to another record or save the record, the
    form’s AfterUpdate event does occur.

    http://msdn.microsoft.com/en-us/library/office/bb238392(v=office.12).aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE 4.0 Seems like iOS 4.0 changed something here. Same code producing incorrect backgrounds
I have a Tix.ComboBox with an editable text field. How do I force the
Does Microsoft force an update down to all of its users of windows-update? Is
Is there a way to force the client to update its local svn configuration
I run sudo svn --username radek update .$codebase. --force; from my php script (on
In WinForms, how do I force an immediate UI update from UI thread? What
How do I force Ivy to work 'offline'; that is, to use only the
Edit: I've updated the code below so that it now works, thanks to Rob's
Does this facade code look like a good idea, or is there anything inherently
I have the items for a combo box being loaded from a store but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.