Application Object.
You can use the UserControl property in Visual Basic to determine whether the current Microsoft Access application was started by the user or by another application using OLE Automation.
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 using OLE Automation. |
You can determine the UserControl property setting only using Visual Basic.
This property is read-only in all views.
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 is not possible to set the Visible property of the Application object to False.
When an Application object is created using OLE Automation, the Visible and UserControl properties of the Application object are both set to False.
Application Object, Visible Property (Application Object).