ms access - VBA Form update after values set in code instead of AfterUpdate() -


I have several combo and option boxes, whose visibility is correct or false based on the user selection of other original option boxes.

I am using the AfterUpdate () function for the parent option box. This method is working fine.

However, when I set the value of the option box in the VBA code ( Me.MyOptionBox = 1 ), an "update" to display the child option and the combo box, is not . It works when I manually click on the option, but if I set it to code then nothing changes except the option box selection. This option is not understood to set the box correctly, but there is a responsibility code to check which option is not selected

Do anyone have any of this about The idea is how to go on this? After setting the values ​​of the option box, I just want to update the form. What is "update" which is referred to as AfterUpdate () anyway?

I have tried MyForm.Repaint and MyForm.Requery but they do not work either.
Any thoughts? You can call the OptionBox_AfterUpdate () method directly after you set the price -


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -