Hourglass Method

Applies To

DoCmd Object.

Description

The Hourglass method carries out the Hourglass action in Visual Basic. For more information on how the action and its argument work, see the Hourglass action topic.

Syntax

DoCmd.Hourglass hourglasson

The Hourglass method uses the following arguments.

Argument

Description

hourglasson

Use True (-1) to display the hourglass (or another icon you’ve chosen). Use False (0) to display the normal mouse pointer.


See Also

DoCmd Object, Echo Method, Hourglass Action, SetWarnings Method.

Example

This example uses the Hourglass method to display an hourglass (or another icon you’ve chosen) while your Visual Basic code is executing.


DoCmd.Hourglass True