B
Bill R via AccessMonster.com
I have a procedure in a form that turns echo off at the beginning and on
again at the end. That's fine, except that when the procedure runs, it
requeries other subforms that also need to turn echo on and off in other
situations. So the problem is that when my procedure hands off to another
procedure that turns echo on and off, at the end of this second procedure
echo is turned off and remains so for the rest of the calling procedure.
I thought of 2 possible fixes:
1. Obviously, turn Echo off again after the second procedure hands off back
to the first one. But the screen updates momentarily between the 2 events.
2. I would prefer to set a blEcho boolean variable at the beginning of the
second procedure that will reflect the current condition of the Echo when the
procedure starts and replace Echo False at the end of the second procedure
with Echo blEcho. That way, when the second procedure runs under other
circumstances, if Echo was false when it began, it will be false when it ends,
but if Echo was true when the procedure began, it will not be set to false at
the end.
That leaves me with a problem. How do I set the blEcho variable to the Echo
condition at the start of the second procedure? I tested in the immediate
window a couple of obvious methods, but I can't find a way to determine
Echo's true/false setting. Any suggestions?
Thanks,
Bill
again at the end. That's fine, except that when the procedure runs, it
requeries other subforms that also need to turn echo on and off in other
situations. So the problem is that when my procedure hands off to another
procedure that turns echo on and off, at the end of this second procedure
echo is turned off and remains so for the rest of the calling procedure.
I thought of 2 possible fixes:
1. Obviously, turn Echo off again after the second procedure hands off back
to the first one. But the screen updates momentarily between the 2 events.
2. I would prefer to set a blEcho boolean variable at the beginning of the
second procedure that will reflect the current condition of the Echo when the
procedure starts and replace Echo False at the end of the second procedure
with Echo blEcho. That way, when the second procedure runs under other
circumstances, if Echo was false when it began, it will be false when it ends,
but if Echo was true when the procedure began, it will not be set to false at
the end.
That leaves me with a problem. How do I set the blEcho variable to the Echo
condition at the start of the second procedure? I tested in the immediate
window a couple of obvious methods, but I can't find a way to determine
Echo's true/false setting. Any suggestions?
Thanks,
Bill