Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run a query on another Db 1

Status
Not open for further replies.

cretanion

Technical User
Jan 28, 2002
53
US
Is it possible to put in a Form, some sort of link or code to run a query in another database. The query in the other database is a make-table query.

docmd.OpenQuery ???
 
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?


Randy
 
one way
Code:
Dim appAccess As New Access.Application
Set appAccess = CreateObject("Access.Application")
appAccess.OpenCurrentDatabase ("\\server\data\filename.mdb")
appAccess.DoCmd.OpenQuery "queryname"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top