I've tried all the events that would instantly call a Procedure.
Before Update
After Update
On Change
On Key Down
On Key Up
On Key Press
I don't think other events would produce the instant procedure call like I want. Events like On Click for example would not be the idea. The idea is to catch the data after the key is up. But it can't catch the text field value unless I change focus in and out of that text field.
I'm sure there's a trick to this.
When the user press a key for example, "d", a message box appears and say, "you have press the letter d."
Simple as that. But the procedure through event can't get the value fast enough so it gives a null value. THe message box would be "you have press the letter "NULL" ...just an example.
That code retrieve key pressed. It doesn't read from the text field.
My original problem as the title said...I need to retrieve the value in the text field with on event. I can see what I type in the text field, but the computer doens't see it with on event.
"Is it possible to catch the value in a text field right after every key entered into the text field?
It seems that the event for example, On Key Up, is too slow to and the text field gives me a null."
The only way someone know, is if they open up access, run the code. Otherwise plainly saying it won't work.
Let me elaborate.
When you enter a letter "a" in the text field, ALL the events so far, MsgBox Me![TxtField].Text will output Null, the next letter you press "b", MsgBox Me![TxtField].Text will output "a"
Huge problem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.