Hourglass Method [Access 2003 VBA Language Reference]

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

Applies to | DoCmd Object