1

In VBA is there anyway to return the state of 'Echo'?

docmd.echo or Application.Echo

Want to know if it's on or off. I could write a function that set a global variable, but would prefer if there was a direct way to access the 'echo' value.

Application.Echo method in MS Access

Community
  • 1
  • 1
John
  • 17
  • 6
  • `Application.Echo True` doesn't hurt if it is already `True`, so it's a good rule of thumb to always do this in your procedure exit handler, if you have set it to False anywhere in that procedure. – Andre Jan 31 '18 at 12:57
  • I already do that in my exit and error handler. Just need to know for other reasons. – John Jan 31 '18 at 13:27
  • 1
    The short answer is No. I'm not aware of a long answer. – Gustav Jan 31 '18 at 16:10
  • Well, of all people, you would know. Thanks. – John Jan 31 '18 at 16:53
  • The use case for this is a routine that temporarily toggles Echo off while controls are refreshed, and at some point this routine is called by another function that has already turned off Echo and you don't want it back on until the calling function finishes. – Ben May 05 '21 at 15:47

0 Answers0