OnChange Event

  • Thread starter Thread starter PeterM
  • Start date Start date
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.
 
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.
 
I found the answer. You're correct, when I used the .Text property, it
returned the results that I expected.
 
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.
 
Back
Top