AFAIK, ADO doesnt have the capability to do this. You'll need to resort to either DDE or COM Automation.
Set oAccess = CreateObject("Access.Application"
WITH oAcces
.OpenCurrentDatabase "C:\MyAccessDB.mdb"
.DoCmd.RunMacro "MyMacroName"
.CloseCurrentDatabase
.Quit
END WITH
Set MyAccessObject = NOTHING Jon Hawkins
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.