Hourglass Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The Hourglass method carries out the Hourglass action in Visual Basic.
expression.Hourglass(HourglassOn)
expression Required. An expression that returns one of the objects in the Applies To list.
HourglassOn Required Variant. Use True (–1) to display the hourglass icon (or another icon you've chosen). Use False (0) to display the normal mouse pointer.
Remarks
For more information on how the action and its argument work, see the action topic.
Example
The following example uses the Hourglass method to display an hourglass icon (or another icon you've chosen) while your Visual Basic code is executing:
DoCmd.Hourglass True