Combo Box works, but top line displays blank

T

thedrumdoctor

I have a combo box on a form which is based on a parameter query. When a form
opens the user is asked to type in the short name of a product. The query
then brings up a cocatenated list of items that match the parameter query.
However, the top line displays as blank. When I click on the drop-down arrow,
all the correct results are displayed. It would be nice if the form would
display the combo box with the first result in the list rather than having to
click on the arrow to see it. Any ideas why this is doing this?
 
L

Linq Adams via AccessMonster.com

A "dropdown box" (combobox) that is unbound normally displays a blank line,
that way the user can start to type and take advantage of the AutoExpand
feature.

To make it display the first item, after it loads, use

Me.ComboBoxName = Me.ComboBoxName.ItemData(0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top