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

DoCmd.CopyObject - From Another Database

Status
Not open for further replies.

GGleason

Technical User
Mar 22, 2001
321
US

I am using the DoCmd.CopyObject to copy queries from one database to another.

My current database is empty and I want to populate it with queries from another database. I have a listing of queries in the other database. This is my copy syntax that is not working:

DoCmd.CopyObject , "[qryInfo]", acQuery, "[C:\Temp\Old.mdb]![qryInfo]"

Is there a way to make this work? Or is there another way?

TIA,
GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top