UserControl Property

Applies To

Application object.

Description

You can use the UserControl property to determine whether the current Microsoft Access application was started by the user or by another application with Automation, formerly called OLE Automation.

Setting

The UserControl property uses the following settings.

Setting

Description

True (–1)

The current application was started by the user.

False (0)

The current application was started by another application with Automation.


You can determine the UserControl property setting only by using Visual Basic.

This property is read-only in all views.

Remarks

When an application is launched by the user, the Visible and UserControl properties of the Application object are both set to True. When the UserControl property is set to True, it isn't possible to set the Visible property of the object to False.

When an Application object is created by using Automation, the Visible and UserControl properties of the object are both set to False.

See Also

Application object, Visible property (Application object).