I would like to create a simple search-as-you-type combobox in Microsoft Access as shown in the image below.
NB: the above image is from a complicated implementation of what I am trying to achieve from here
My combobox is named ctlSearch
. Using Visual Basic, I would like to hook on to the onChange
event, detecting the user input and consequently refining the list of possible results. Is it possible to take this approach to implement the search-as-you-type combobox?
You can set up the combo or listbox something like this:
Then in the Change event requery the combo or listbox.
Try using this This is much simpler than your mentioned source.