Application Property

Microsoft Access Visual Basic

Application Property

       

You can use the Application property in Visual Basic to access the active Microsoft Access Application object and its related properties. Read-only Application object.

expression.Application

expression   Required. An expression that returns one of the objects in the Applies To list.

Setting

The Application property is set by Microsoft Access and is read-only in all views.

Remarks

Each Microsoft Access object has an Application property that returns the current Application object. You can use this property to access any of the object's properties. For example, you could refer to the menu bar for the Application object from the current form by using the following syntax:

Me.Application.MenuBar

Example

The following example demonstrates how to change the cursor to an hourglass and back again to signify that some background activity is occurring.

Application.Screen.MousePointer = 11 ' Hourglass
' Do some background activity.
Application.Screen.MousePointer = 0 ' Back to normal