J
JustAnotherGeek
I'm attempting to extend one of the features of a listbox in Access.
If I press a key (e.g. "G") while the listbox has the focus, the
listbox will automatically scroll to the first item in the list that
starts with the letter "G". The problem is that if I then press
another letter (say "R"), the listbox will scroll to the first item
that starts with the letter "R".
I would like to get the listbox to instead scroll the the first item
that starts with "GR".
Using some VBA code, I've managed to get this behavior to work fine --
almost. If I type "GR" while my listbox has the focus, it scrolls to
the first item that starts with "GR". However, the built-in listbox
functionality then runs and the listbox scrolls to the first item that
starts this the last letter I pressed.
So here's my question(s): Is there any way to disable the auto-scroll
feature of a listbox? If not, then has anybody else figured out a way
to get multi-character scrolling working with listboxes?
I'm using Access 2000 and/or 2003.
And my apologies in advance if this issue has been discussed already. I
looked but didn't find anything that looked like this.
If I press a key (e.g. "G") while the listbox has the focus, the
listbox will automatically scroll to the first item in the list that
starts with the letter "G". The problem is that if I then press
another letter (say "R"), the listbox will scroll to the first item
that starts with the letter "R".
I would like to get the listbox to instead scroll the the first item
that starts with "GR".
Using some VBA code, I've managed to get this behavior to work fine --
almost. If I type "GR" while my listbox has the focus, it scrolls to
the first item that starts with "GR". However, the built-in listbox
functionality then runs and the listbox scrolls to the first item that
starts this the last letter I pressed.
So here's my question(s): Is there any way to disable the auto-scroll
feature of a listbox? If not, then has anybody else figured out a way
to get multi-character scrolling working with listboxes?
I'm using Access 2000 and/or 2003.
And my apologies in advance if this issue has been discussed already. I
looked but didn't find anything that looked like this.