K
Kumar
I am trying to open another Access DB from my current Access DB and trying to
execute a SUB programatically. But I get a message that Microsoft Office
Access can't find macro "ParseMnAFileAGH" message. Any help on this is much
appriciated.
Here is my code:
SUB RunMacro()
dim objAccess as Access.Application
Set objAccess=CreateObject("Access.Application")
objAccess.OpenCurrentDatabase ("C:\MnAAH.mdb")
objAccess.docmd.RunMacro "ParseMnAFileAH"
objAccess.DoCmd.Minimize
Set objAccess = Nothing
End sub
execute a SUB programatically. But I get a message that Microsoft Office
Access can't find macro "ParseMnAFileAGH" message. Any help on this is much
appriciated.
Here is my code:
SUB RunMacro()
dim objAccess as Access.Application
Set objAccess=CreateObject("Access.Application")
objAccess.OpenCurrentDatabase ("C:\MnAAH.mdb")
objAccess.docmd.RunMacro "ParseMnAFileAH"
objAccess.DoCmd.Minimize
Set objAccess = Nothing
End sub