A family of Microsoft relational database management systems designed for ease of use.
You cannot run a macro in another database without opening that database.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
path1 has the full path of the access database. The code is working fine. But when I run, it opens the other database and gives the warning for security.
But I what the macro to run without opening the other database. How could I do this
Set objACC = GetObject(path1)
objACC.DoCmd.RunMacro ("Macro1") 'run macro
objACC.Quit
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
You cannot run a macro in another database without opening that database.