?
Solved

How to MakeTable to another database?

Posted on 2013-01-06
2
Medium Priority
?
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 2000 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

762 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