make dropdown disappear

robart6

Registered User.
Local time
Today, 11:56
Joined
Feb 11, 2004
Messages
19
Help, please!

When my second form opens, the combo box dropdown from the first form is visible. How can I make the dropdown disappear?
 
Is the second form a subform, i.e. part of the first form, or are they both separate forms?

Bit more detail please
thinkerg.gif
 
Separate forms.
 
Why do ya want to hide the combobox on the first form?
 
Johny, the dropdown on the first form is working fine. The problem is the first form's dropdown appears on the second form when the second form opens.
 
robart6 said:
Johny, the dropdown on the first form is working fine. The problem is the first form's dropdown appears on the second form when the second form opens.

In the OnOpen event of the second form insert line

the form name is "First_Form"

Code:
Form_First_Form!cbo_My_Drop_Down.Visible = False

you need to insert the word and the underscore "Form_" in the begining of the form reference.

Does this help? Please respond
 
Last edited:
smercer, thanks for the reply. Somehow the problem resolved itself. Not sure if it just went away or if I changed something to make it go away.
 
robart6 said:
smercer, thanks for the reply. Somehow the problem resolved itself. Not sure if it just went away or if I changed something to make it go away.

Thats because it is microsoft. they like to have an error here and there so you would spend money to have it fixed.

when I first started using VBA i deleted the onerror gotos that the wizard put in and problem went away.
 
It may just have been a loading or repainting issue.
 

Users who are viewing this thread

Back
Top Bottom