Automatically Click or Dropdown a Listbox in Access

I have an Access 2010 database form with a subform with a listbox of names.  Currently, the user has to click the listbox dropdown arrow to drop the list down.  Once the list is down, the user can start typing and the list item that matches the typing is highlighted and easily selected.  I would like to skip the step of the user manually clicking the listbox dropdown arrow.  Is there a way to have the listbox automatically dropdown when focus is set on the listbox, or have the listbox recognize the typing and dropdown when the typing starts, or some other solution?
Snoopy007Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SheilsCommented:
Use the got focus event of the combo box.



To do that:

1) Open the form in design view and right click on the combo box to select the property.
2) Go to the event tab.
3) Click the drop down in the On Got Focus entry box and select event procedure.
4) Double click on the button at the right of event procedure.
5) Insert the following code in the code editor:

Private Sub ComboxName_GotFocus()

Me. ComboxName.Dropdown

End Sub
0
Snoopy007Author Commented:
I tried it, but .Dropdown is not available for the ListBox I am using.  Any other ideas?
0
SheilsCommented:
Now I am confused. When you mentioned drop down I thought that you were referring to a combo box and call it list box by mistake.

Access forms do not have dropdown list box. They used to be available for the data page in Access 2003 but the data page have been removed from Access in the 2007 version.

You may have to consider using a combobox instead of a dropdown list box noting that the way you are using it is exactly the way combo boxes work.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Snoopy007Author Commented:
I changed the listbox to a combo box and used .dropdown and it worked.  Thanks for your help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.