Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2006, 01:49 PM
Registered User
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Export results of query to another database

I am trying to export the results of queries in one database to another database. I know that I can go into each query from query design and type where I want the tables to go, but what I would like is to be able to export the results of these queries to a new database as named tables. I think I must be missing an obvious way to do this, but thought maybe someone here could help. This is program that will be run quarterly, so I want the output of these queries to be saved as tables in another database for each quarter.

Thanks for your help!
 
Old September 29th, 2006, 06:52 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Are you creating a new database each time?

I would suggest using DoCmd.TransferDatabase. Look this up in VBA Help for the syntax.

Do you need more help with this? If so, post some particualrs. It may also be that you will want to append the query results to a table, and then transfer the table.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Query Results in Results Grid druid2112 SQL Server 2005 1 June 28th, 2007 08:49 AM
different results were given for the same query madhusrp SQL Server 2000 2 May 9th, 2006 01:54 AM
Refresh Query Results Ben Access VBA 2 February 10th, 2004 10:58 AM
Query not returning correct results from database Jams30 PHP Databases 5 November 7th, 2003 08:55 AM
Using form results to query a database? Jams30 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 October 29th, 2003 07:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.