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
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