OnChange Event

P

PeterM

On a form in AC2003 I have a field (emailaddress). I have coded an event for
the OnChange event. The OnChange event simply concatenates a few other
literals and the emailaddress field 0nto a form textbox (emailaddressmsg). I
want the emailaddressmsg to update after each keystroke in emailaddress
hence using the OnChange event. However, it doesn't update the
emailaddressmsg until emailaddress looses focus.

How do I capture each keystroke via the OnChange event? When I run in debug
mode, emailaddress is null in the OnChange event.
 
D

Duane Hookom

Show your code. If you included the code in your message, you might get the
correct answer in the first reply.

It might be an issue with using either the Value or no property of the text
box when I think you need to reference the Text property.
 
P

PeterM

I found the answer. You're correct, when I used the .Text property, it
returned the results that I expected.
 
D

De Jager

PeterM said:
On a form in AC2003 I have a field (emailaddress). I have coded an event
for
the OnChange event. The OnChange event simply concatenates a few other
literals and the emailaddress field 0nto a form textbox (emailaddressmsg).
I
want the emailaddressmsg to update after each keystroke in emailaddress
hence using the OnChange event. However, it doesn't update the
emailaddressmsg until emailaddress looses focus.

How do I capture each keystroke via the OnChange event? When I run in
debug
mode, emailaddress is null in the OnChange event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top