olitandler
Programmer
I have a problem controlling combobox behaviour inside a tab control.
I thought I'd make life easier for the users so when they click on or tab into the control, the dropdown appears. I set the combobox gotfocus event to trigger the dropdown method, i.e;
This works fine when you click or tab into the combobox control, BUT, when you now click directly on the combobox dropdown arrow, the dropdown does not stay visible! It flashes on the screen for a fraction of a second. I think what is happening is;
1. User clicks on combobox dropdown arrow
2. Access displays combobox dropdown
3. gotfocus event is then performed
4. Me!cboCity.Dropdown is performed and switches OFF the dropdown (as it is already visible).
When combobox is NOT inside a tab control, it works fine.
Is there a solution?
This is access 2000 9.0.3821 SR1, Windows 98.
Many Thanks.
I thought I'd make life easier for the users so when they click on or tab into the control, the dropdown appears. I set the combobox gotfocus event to trigger the dropdown method, i.e;
Code:
Private Sub cboCity_GotFocus()
Me!cboCity.Dropdown
End Sub
1. User clicks on combobox dropdown arrow
2. Access displays combobox dropdown
3. gotfocus event is then performed
4. Me!cboCity.Dropdown is performed and switches OFF the dropdown (as it is already visible).
When combobox is NOT inside a tab control, it works fine.
Is there a solution?
This is access 2000 9.0.3821 SR1, Windows 98.
Many Thanks.