Application.UserControl (Access)
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.
The UserControl property uses the following settings.
MsgBox "The user started Access: " & Application.UserControl