Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Combobox dropdown behaviour when inside tab cntl

Status
Not open for further replies.

olitandler

Programmer
Aug 13, 2002
3
AU
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;
Code:
Private Sub cboCity_GotFocus()
  Me!cboCity.Dropdown
End Sub
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top