Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tell if Access is controlled by Automation 1

Status
Not open for further replies.

PWise

Programmer
Dec 12, 2002
2,633
US
Is there a way to tell if A Access Application was opened by Automation or by clicking on the database icon?

There is code that I want to run/not run depending if the Access Application is controlled by Automation.

There are Access Application that I want only to be run by Automation.

PWise
 
straight from the VBA help:
MsgBox "The user started Access: " & Application.UserControl

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Have A Star
missed that one
thanks for all the help
PWise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top