L
LarryP
I have a form with subforms on tabs. Main form has a
control (let's call it txtXXX) with a numeric value, and
two labels -- one says "OK To Ship," the other says "Do
Not Ship." On form open, if the txtXXX contains a zero,
the former is visible; if it contains >0, the latter is
visible.
Events in the subforms can change the value of txtXXX, OR
(key point) trigger code that changes the value of
txtXXX. Of course whenever txtXXX changes I want the flag
to change if appropriate. Under some circumstances I
could do that with the AfterUpdate event, but when the
change comes from a procedure that event apparently
doesn't fire, so I've set up a timer event to test the
value of txtXXX every 1000 milliseconds and change the
visible label if appropriate. Problem is, it creates a
visible flickering effect that I'd like to get rid of.
Anybody know how I might do that, or have another way I
can achieve my goal without using a timer event? (Upping
the timer interval is not an option, by the way; customers
want to see that flag change almost instantly when they
make a related change in one of the subforms.)
control (let's call it txtXXX) with a numeric value, and
two labels -- one says "OK To Ship," the other says "Do
Not Ship." On form open, if the txtXXX contains a zero,
the former is visible; if it contains >0, the latter is
visible.
Events in the subforms can change the value of txtXXX, OR
(key point) trigger code that changes the value of
txtXXX. Of course whenever txtXXX changes I want the flag
to change if appropriate. Under some circumstances I
could do that with the AfterUpdate event, but when the
change comes from a procedure that event apparently
doesn't fire, so I've set up a timer event to test the
value of txtXXX every 1000 milliseconds and change the
visible label if appropriate. Problem is, it creates a
visible flickering effect that I'd like to get rid of.
Anybody know how I might do that, or have another way I
can achieve my goal without using a timer event? (Upping
the timer interval is not an option, by the way; customers
want to see that flag change almost instantly when they
make a related change in one of the subforms.)