' Include following in Declarations section of module.
Dim appAccess as Access.Application
Function OpenMacro(strMacroName as string)
Set appAccess = _
CreateObject("Access.Application"
' Open database in Microsoft Access window.
appAccess.OpenCurrentDatabase "path\YourDbName.mdb"
' Open Macro
appAccess.DoCmd.RunMacro strMacroName
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.