ChewDoggie
Programmer
Hello All!
I did a keyword search of this forum and didn't find anything (not sure about the keywords I used).
I have a search textbox on a form (txtLname), and I'd like to resolve the search with each user keypress.
So, if the "user" presses "z", all of the names beginning with "z" appear. If the user then presses "i", then all last names beginning with "zi" appear, etc.
Currently, I have a "Find" button and I do a general search in the cmdFind_Click subroutine, but that isn't done til the user either clicks the find button.
I tried to add a call to the cmdFind_Click subroutine in the txtLname_Keypress event, but I keep getting strange results, i.e., when the user presses "a", the list highlights the names beginning with "K". That kind of thing.
Anyone have ideas how to make this work?
Thanks.
AMACycle
I did a keyword search of this forum and didn't find anything (not sure about the keywords I used).
I have a search textbox on a form (txtLname), and I'd like to resolve the search with each user keypress.
So, if the "user" presses "z", all of the names beginning with "z" appear. If the user then presses "i", then all last names beginning with "zi" appear, etc.
Currently, I have a "Find" button and I do a general search in the cmdFind_Click subroutine, but that isn't done til the user either clicks the find button.
I tried to add a call to the cmdFind_Click subroutine in the txtLname_Keypress event, but I keep getting strange results, i.e., when the user presses "a", the list highlights the names beginning with "K". That kind of thing.
Anyone have ideas how to make this work?
Thanks.
AMACycle