Hi,
I have a combo box with ID (Hidden); surname/code ; firstname
Smith/A Abbie
Smith/B Bobby
Smith/B Bernie
Smith/B Biff
Smith/C Charlie
I type Smith/B, enter (without selecting with mouse or cursor down)
I would like it to NOT save the selection until I cursor down or Mouse click
but it has saved Smith/B Bobby as it matches the first in the list
Basically a form lists ALL matching Smith/B which is what I want at first.
However what I want next, is if I select (usually with cursor down) a specific name e.g. Smith/B .. Biff, then only lists in the form exact matches on the ID, which can work as I have the ID stored.
I can have one or the other but not both at the same time.
I have autoexpand Off but on entering the combobox I have code to auto dropdown
Just trying me.surname.SelectedIndex = -1 (or just surname.SelectIndex = -1) but both give compile error but not sure will help anyway (so not persisted at moment) unless I test for mouse click or cursor movement.
I want the combo to dropdown & show all loosely matching.
Had this for years in my DB but every now & then try to get a cleaner solution & give up. I currently have the show all matching but would prefer exact selection.
Thanks I/A
I have a combo box with ID (Hidden); surname/code ; firstname
Smith/A Abbie
Smith/B Bobby
Smith/B Bernie
Smith/B Biff
Smith/C Charlie
I type Smith/B, enter (without selecting with mouse or cursor down)
I would like it to NOT save the selection until I cursor down or Mouse click
but it has saved Smith/B Bobby as it matches the first in the list
Basically a form lists ALL matching Smith/B which is what I want at first.
However what I want next, is if I select (usually with cursor down) a specific name e.g. Smith/B .. Biff, then only lists in the form exact matches on the ID, which can work as I have the ID stored.
I can have one or the other but not both at the same time.
I have autoexpand Off but on entering the combobox I have code to auto dropdown
Just trying me.surname.SelectedIndex = -1 (or just surname.SelectIndex = -1) but both give compile error but not sure will help anyway (so not persisted at moment) unless I test for mouse click or cursor movement.
I want the combo to dropdown & show all loosely matching.
Had this for years in my DB but every now & then try to get a cleaner solution & give up. I currently have the show all matching but would prefer exact selection.
Thanks I/A