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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Control .Dropdown

Status
Not open for further replies.

Survane

MIS
Jul 3, 2002
74
US
This my code:

Dim ctl As Control
Set ctl = Screen.ActiveControl
If ctl.ControlType = acComboBox Then
ctl.Dropdown
End If

It works. I just don't want to put it behind every combo box ctl on my form. Where can I put it on the form (globally) so that when the user goes to a new control it will run the code and dropdown if it's a combo box?

Thanks
 
in the on current event for the form...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
I think, sorry, i forgot to put that in there, i'm not posative on that...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
I actually tried that and it didn't work.

Thanks.
 
How about on key press??

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top