You can use the Hourglass action to change the mouse pointer to an image of an hourglass (or another icon you’ve chosen) while a macro is running. This action can provide a visual indication that the macro is running. This is especially useful when a macro action or the macro itself takes a long time to run.
The Hourglass action uses the following argument.
Action argument |
Description |
Hourglass On |
Select Yes to display the icon. Click No to display the normal mouse pointer. The default is Yes. |
You often use this action if you’ve turned echo off using the Echo action. When echo is off, Microsoft Access suspends screen updates until the macro is finished.
Microsoft Access automatically resets Hourglass On to No when the macro finishes running.
Note In Microsoft Windows 95, the icon shown by this action is the icon you set for Busy in the Pointers tab of the Mouse Properties dialog box in the Windows Control Panel (the default is an animated hourglass). In Windows NT, this is the icon you set for Wait in the Cursors section of the Control Panel (the default is also an hourglass). In either case, you can choose another icon if you want.
To run the Hourglass action in Visual Basic, use the Hourglass method of the DoCmd object.
Echo Action, Hourglass Method.