N
Niklas Östergren
Is it possible to check a combobox drop down status?
I´d like to test if a combobox allready is open. And if so close it when I
press <Enter>.
I allready have following code in the combobox on Change_Event:
Me!cboSearchFileName.Dropdown
And in the combobox AfterUpdate_Event this code:
'Close drop down of combobox
SendKeys "{F4}"
This does following:
- Change_Event = Open combobox when the user types the first sign
(character). Displaying the selectable records.
- AfterUpdate_Event = Closes the combobox when user work´s with the mous.
BUT:
This gives the effect that if the user opens up the combobox with help of on
Change_Event it will NOT close when the user select a record with <Enter>.
Focus do change to the listbox which is next but the combobox is still open.
Quit anoying!
TIA!
// Niklas
I´d like to test if a combobox allready is open. And if so close it when I
press <Enter>.
I allready have following code in the combobox on Change_Event:
Me!cboSearchFileName.Dropdown
And in the combobox AfterUpdate_Event this code:
'Close drop down of combobox
SendKeys "{F4}"
This does following:
- Change_Event = Open combobox when the user types the first sign
(character). Displaying the selectable records.
- AfterUpdate_Event = Closes the combobox when user work´s with the mous.
BUT:
This gives the effect that if the user opens up the combobox with help of on
Change_Event it will NOT close when the user select a record with <Enter>.
Focus do change to the listbox which is next but the combobox is still open.
Quit anoying!
TIA!
// Niklas