Combo box intellisense

  • Thread starter Thread starter Malcolm
  • Start date Start date
M

Malcolm

Hi,

If you have a combobox filled with (For example) names,
when you enter the combobox and start typing it
automatically tries to fill in the best match. If you hit
enter it selects this, or keep typing and it keeps trying
to match. Very convenient.

While it is suggesting the completed word, is there any
way to determine which actual combobox.listindex it is
suggesting?


Thanks in advance for any help.

Regards

Malcolm
 
Malcolm said:
If you have a combobox filled with (For example) names,
when you enter the combobox and start typing it
automatically tries to fill in the best match. If you hit
enter it selects this, or keep typing and it keeps trying
to match. Very convenient.

While it is suggesting the completed word, is there any
way to determine which actual combobox.listindex it is
suggesting?

You have to use the combo box's Change event to tell what's
happening for each keystroke. In the change event
combobox.ListIndex
will tell you the item that would be selected if the tab or
enter key is hit next.

If ListIndex is -1, then something was entered that is not
in the list.
 
Marsh,

Thanks for your help. I will have a look at keypress.
Makes sense.


Regards


Malcolm
 
Malcolm said:
Thanks for your help. I will have a look at keypress.

KeyPress???

I really doubt that you need to go that far. Try the
combo's Change event, it should provides what you need.
--
Marsh
MVP [MS Access]



 
Back
Top