rollup dropdown

W

Wendy

Hi, I have a combobox dropdown with an onchange eventt. one of the selections
opens a popup form using the afterupdate event. while the popup form is open
the combobox stays in the dropdown state. How can I prevent this, ie I need
the combobox to close (rollup)when the popup is open.

Thanks
 
F

fredg

Hi, I have a combobox dropdown with an onchange eventt. one of the selections
opens a popup form using the afterupdate event. while the popup form is open
the combobox stays in the dropdown state. How can I prevent this, ie I need
the combobox to close (rollup)when the popup is open.

Thanks

Why are you using the Change event? That fires each time you enter a
character in the control. Is that what you want?

I can't duplicate that behavior, so perhaps you have something else
going on.
Try setting focus to another control just before you open the pop-up
form.
[OtherControl].SetFocus
DoCmd.Openform etc...
 
W

Wendy

You were right something else was going on and I fixed the problem. Also I'm
using the on enter event to open the list instead of onchange.
thanks

fredg said:
Hi, I have a combobox dropdown with an onchange eventt. one of the selections
opens a popup form using the afterupdate event. while the popup form is open
the combobox stays in the dropdown state. How can I prevent this, ie I need
the combobox to close (rollup)when the popup is open.

Thanks

Why are you using the Change event? That fires each time you enter a
character in the control. Is that what you want?

I can't duplicate that behavior, so perhaps you have something else
going on.
Try setting focus to another control just before you open the pop-up
form.
[OtherControl].SetFocus
DoCmd.Openform etc...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

OnChange from Combo box 3
Paragraph numbering in Word 1
Access Backstage Reset DropDowns 0
Combo Box Mouseover selection 4
Combo box 0
form opening 1
ahtCheckOpenArgs([Form]) 1
Combobox Sected Item 3

Top