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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get data from external database/query into current database

Status
Not open for further replies.

GGROD

Programmer
Feb 7, 2002
68
US
is there a way to run a query in an external database and put the results into a table in my current database?

Example:

INSERT INTO tblLocalTable
SELECT *
FROM (ExternalDatabase.mdb, externalQuery)
?

Thanks
 
If I could link to the external query then I would do that. But access doesn't allow to link to queries just tables. The external query I need data from is very complicated and complex and I think it would be very difficult to duplicate.
 
Try
Code:
INSERT INTO tblLocalTable
SELECT * 
FROM (;database=C:\Somepath\ExternalDatabase.mdb).ExternalQuery
 
Don't I have to open a connection to the external database first?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top