Connecting Tech Pros Worldwide Help | Site Map

Combobox dropdown

Alireza355's Avatar
Member
 
Join Date: Feb 2009
Location: Iran
Posts: 68
#1: 2 Weeks Ago
Dear all,

I have a combobox, which shows some records from a query in the combobox rowsource.

I want the combobox to dropdown whenever it receives focus from the previous field, so that the user becomes familiar with the information that has already been entered by previous users in the past...

I would appreciate your assistance.

Thank you so much.
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,865
#2: 2 Weeks Ago

re: Combobox dropdown


Put the following code in the "On Enter" event of the combobox

Expand|Select|Wrap|Line Numbers
  1. Me.ComboboxName.Dropdown
  2.  
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,865
#3: 2 Weeks Ago

re: Combobox dropdown


Small change, it might be better to change it to the "Got Focus" event.
Alireza355's Avatar
Member
 
Join Date: Feb 2009
Location: Iran
Posts: 68
#4: 1 Week Ago

re: Combobox dropdown


Thanx a lot.

It worked perfect...

Best Regards,
Alireza355
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,865
#5: 1 Week Ago

re: Combobox dropdown


Quote:

Originally Posted by Alireza355 View Post

Thanx a lot.

It worked perfect...

Best Regards,
Alireza355


You're Welcome :)
Reply