I don't think you can access the query in the other database, but you can link to the tables. Why not just copy the query into your db, link to the tables in the other db, and run the query in that manner?
Dim appAccess As New Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase ("\\server\data\filename.mdb")
appAccess.DoCmd.OpenQuery "queryname"
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.