P
peterm
I'm running Access 2003 on XP. I have a form with a text
field on it. In the text fields OnChange event I have
the following code:
If me.textfield > "" then
me.addbutton.enabled = true
else
me.addbutton.enabled = false
endif
The problem I'm having is that it doesn't work as
expected; the OnChange event is firing for every
character that is entered into the text field but the
debugger says the value is null until focus moves from
the text field to any other control on the form. This
defeats the purpose. Why is the text fields value null
until the text box looses focus? I want the button
enabled upon the first character entered into the text
field. Thanks for your help!
field on it. In the text fields OnChange event I have
the following code:
If me.textfield > "" then
me.addbutton.enabled = true
else
me.addbutton.enabled = false
endif
The problem I'm having is that it doesn't work as
expected; the OnChange event is firing for every
character that is entered into the text field but the
debugger says the value is null until focus moves from
the text field to any other control on the form. This
defeats the purpose. Why is the text fields value null
until the text box looses focus? I want the button
enabled upon the first character entered into the text
field. Thanks for your help!