Hi,
I have a UserForm that has 3 controls - textbox and 2 buttons (Clear and Close). I am trying to replicate search engines "instant search" so results (from a SQL database) are updated as you type.
The problem is that the Change event causes the text input to lag while it is off doing it's SQL query, so the characters don't show in the textbox until the query is done. Can this be changed so typing is fluid.
One thing I've literallty just thought of is having a delay between keystrokes so if the time is longer than say 2 seconds, then do the search. Is that possible?
Also, is it possible to do what I want without a UserForm? Can I replicate this in an "in-sheet" control?
Thanks
I have a UserForm that has 3 controls - textbox and 2 buttons (Clear and Close). I am trying to replicate search engines "instant search" so results (from a SQL database) are updated as you type.
The problem is that the Change event causes the text input to lag while it is off doing it's SQL query, so the characters don't show in the textbox until the query is done. Can this be changed so typing is fluid.
One thing I've literallty just thought of is having a delay between keystrokes so if the time is longer than say 2 seconds, then do the search. Is that possible?
Also, is it possible to do what I want without a UserForm? Can I replicate this in an "in-sheet" control?
Thanks