T
Tom
Please help with a conceptual problem...
I have an unbound dialog form that I call up for the user to enter a
couple of values that will then be used for some calculations. I
don't want the OK button to enable until all the text boxes are filled
in. Normally, I would include a data check routine that would get
called from the afterupdate event on each text box. If all the text
boxes had a value (that was inside predetermined ranges), the OK
button would be enabled, otherwise not.
Pretty standard stuff...
Now, one pesky user has complained that after he's done entering the
last value the OK button doesn't enable until and unless he tabs off
the last text box. Sure enough, that's the way AfterUpdate works. He
wants it so that immediately upon entering a value in the last text
box, the OK button will enable. I got to say there is a certain logic
to that...
So, I've tried just about every event for the text boxes and form that
I can think of (dirty, keypress, etc), but nothing will fire. What
event should I be using to call the data check routine and enable the
OK button so that it reacts immediately to data entry and doesn't wait
for the user to move off the text box?
Thanks
I have an unbound dialog form that I call up for the user to enter a
couple of values that will then be used for some calculations. I
don't want the OK button to enable until all the text boxes are filled
in. Normally, I would include a data check routine that would get
called from the afterupdate event on each text box. If all the text
boxes had a value (that was inside predetermined ranges), the OK
button would be enabled, otherwise not.
Pretty standard stuff...
Now, one pesky user has complained that after he's done entering the
last value the OK button doesn't enable until and unless he tabs off
the last text box. Sure enough, that's the way AfterUpdate works. He
wants it so that immediately upon entering a value in the last text
box, the OK button will enable. I got to say there is a certain logic
to that...
So, I've tried just about every event for the text boxes and form that
I can think of (dirty, keypress, etc), but nothing will fire. What
event should I be using to call the data check routine and enable the
OK button so that it reacts immediately to data entry and doesn't wait
for the user to move off the text box?
Thanks