Share via

Running macro from another access database

Anonymous
2011-07-12T19:45:21+00:00

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

Microsoft 365 and Office | Access | For home | Windows

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.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2011-07-12T21:14:16+00:00

You cannot run a macro in another database without opening that database.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful