dropdown property

G

Guest

When I want a combo box to automatically dropdown when it is clicked on,
opened with a shortcut key, or tabbed into, I use the following code:
Me!cboLookupCustomer.dropdown
and assign the code to the GotFocus event of the combo box.
The combo box opens just fine, but when I make my selection, the combo box
does not close, the list still remains open.

Can you help?--
Boomer
 
R

Rick Brandt

boomer said:
When I want a combo box to automatically dropdown when it is clicked
on, opened with a shortcut key, or tabbed into, I use the following
code: Me!cboLookupCustomer.dropdown
and assign the code to the GotFocus event of the combo box.
The combo box opens just fine, but when I make my selection, the
combo box does not close, the list still remains open.

Can you help?--
Boomer

You have to either...

<Tab>
<Enter>
<F4>
Click on a selection in the list with your mouse
Use your mouse to leave the control.

That is how it works even if you drop a ComboBox manually.
 
G

George Oro

Or you can put this after update of your combo:

if not isnull(me.cboLookupCustomer) then
me.MyControl.SetFocus
end if

George
 

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

Top