hi.
i am having a module in access named "GlobalFunctions"
in that module i have alot of sub's and functions.
there is a public sub named "ImportOldData"
i need to run this sub from my excel application, i have created a code in vba to do it, but somehow it generates an error number '2485' that mydatabase cant find my module named 'GlobalFunctions'
i tried so many diffrent ways, but no luck, maybe anyone here can help.
here is my code.
Dim appAccess As Object
strDatabasePath = "C:\Test.accde"
Set appAccess = GetObject(, "Access.Application")
With appAccess
.Visible = True
.DoCmd.RunMacro "GlobalFunctions.ImportOldData"
End With
Set appAccess = Nothing