justice8965
Registered User.
- Local time
- Today, 08:37
- Joined
- Aug 25, 2009
- Messages
- 32
Hey all
I'm trying to run a macro in a different database than the current one when the user clicks a button. I'd like to do this without the other database actually opening (ie the user doesn't see the database opening)
So far I have this:
Dim ms0 As New Access.Application
ms0.OpenCurrentDatabase ("C:\Documents and Settings\Matt.EMPIRE\My Documents\Billing.accdb")
ms0.DoCmd.RunMacro ("enrollmentProfile")
However, this opens the other database. Is there any way to do it without opening it?
I'm trying to run a macro in a different database than the current one when the user clicks a button. I'd like to do this without the other database actually opening (ie the user doesn't see the database opening)
So far I have this:
Dim ms0 As New Access.Application
ms0.OpenCurrentDatabase ("C:\Documents and Settings\Matt.EMPIRE\My Documents\Billing.accdb")
ms0.DoCmd.RunMacro ("enrollmentProfile")
However, this opens the other database. Is there any way to do it without opening it?