Application.Echo (Access)

The Echo method specifies whether Microsoft Access repaints the display screen.

If you are running Visual Basic code that makes a number of changes to objects displayed on the screen, your code may work faster if you turn off screen repainting until the procedure has finished running. You may also want to turn repainting off if your code makes changes that the user should not or does not need to see. The Echo method does not suppress the display of modal dialog boxes, such as error messages, or pop-up forms, such as property sheets.

Echo (EchoOn, bstrStatusBarText)


Public Sub EchoOff() 
 
 ' Open the Employees form minimized. 
 Application.Echo False 
 DoCmd.Hourglass True 
 DoCmd.OpenForm "Employees", acNormal 
 DoCmd.Minimize 
 Application.Echo True 
 DoCmd.Hourglass False 
 
End Sub

Arguments

The following argument is required

EchoOn (Integer) - True (default) indicates that the screen is repainted.

Optional arguments

The following argument is optional

bstrStatusBarText (String) - A string expression that specifies the text to display in the status bar when repainting is turned on or off.