Solved

How to MakeTable to another database?

Posted on 2013-01-06
2
198 Views
Last Modified: 2013-01-08
Hello - I need to run MakeTable queries in a split-database front end that makes the tables in the back end.

I see the DestConnectStr/DB/Table properties in the Query Design property sheet, but where are these prop's if I want to set them in VBA, and run the query via a QueryDef .Execute?

Thanks
0
Comment
Question by:mlagrange
2 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 38748912
You can use this syntax:
Dim SQL As String
SQL = "SELECT * INTO [MS Access;Database=C:\Database.mdb].Table1 FROM Table1;"
CurrentDb.Execute SQL, dbFailOnError

Open in new window

0
 

Author Closing Comment

by:mlagrange
ID: 38755624
Thank you!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now