dropdown property

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Or you can put this after update of your combo:

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

George
 
Back
Top