DoCmd.Echo method (Access)
Carries out the Echo action in Visual Basic.
Syntax
expression.Echo (EchoOn, StatusBarText)
expression A variable that represents a DoCmd object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
EchoOn | Required | Variant | Use True to turn echo on and False to turn it off. |
StatusBarText | Optional | Variant | A string expression indicating the text that appears in the status bar. |
Remarks
If you leave the StatusBarText argument blank, don't use a comma following the EchoOn argument.
If you turn echo off in Visual Basic, you must turn it back on or it will remain off, even if the user presses Ctrl+Break or if Visual Basic encounters a breakpoint. You may want to create a macro that turns echo on, and then assign that macro to a key combination or a custom menu command. You could then use the key combination or menu command to turn echo on if it has been turned off in Visual Basic.
The Echo method of the DoCmd object was added to provide backward compatibility for running the Echo action in Visual Basic code in Microsoft Access for Windows 95. It's recommended that you use the existing Echo method of the Application object instead.
Note
The Echo method does not affect the visibility of the ribbon or the availability of ribbon commands.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기