If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
OnChange Event
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. |
#2
|
|||
|
|||
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. -- Duane Hookom Microsoft Access MVP "PeterM" wrote: 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. |
#3
|
|||
|
|||
OnChange Event
I found the answer. You're correct, when I used the .Text property, it
returned the results that I expected. "Duane Hookom" wrote: 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. -- Duane Hookom Microsoft Access MVP "PeterM" wrote: 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. |
#4
|
|||
|
|||
OnChange Event
"PeterM" wrote in message ... 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. |
Thread Tools | |
Display Modes | |
|
|