bcooler
Programmer
- Jun 13, 2009
- 132
So, for all my ADHD friends, I'll ask the question first, then give all the boring details next....
Any ideas on how to force an unbound textbox's value to update each time I press a keyboard character?
Now the details....
I have an unbound textbox that I am using as entry for a Google-like search. This depends on resetting the form's filter after each keystroke. I've got it to work, but I'm frustrated at the band-aid I had to use and think there must be a better way.
When I enter info into the textbox and "watch" the textbox value during the textbox_change event, I see an unchanged value (textbox hasn't updated yet). I assumed the textbox doesn't assume a value until you leave the textbox, so I just set the focus on another object and then back onto the original textbox. At this point, the textbox does correctly show the info I entered.
Now, I have tried the .text version of the textbox value, but I must have focus to read it and that causes problems later.
Thanks!
Any ideas on how to force an unbound textbox's value to update each time I press a keyboard character?
Now the details....
I have an unbound textbox that I am using as entry for a Google-like search. This depends on resetting the form's filter after each keystroke. I've got it to work, but I'm frustrated at the band-aid I had to use and think there must be a better way.
When I enter info into the textbox and "watch" the textbox value during the textbox_change event, I see an unchanged value (textbox hasn't updated yet). I assumed the textbox doesn't assume a value until you leave the textbox, so I just set the focus on another object and then back onto the original textbox. At this point, the textbox does correctly show the info I entered.
Now, I have tried the .text version of the textbox value, but I must have focus to read it and that causes problems later.
Thanks!