Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / March 2005

Tip: Looking for answers? Try searching our database.

Create a new database with VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
felixc36@yahoo.com - 02 Mar 2005 18:11 GMT
Hi,

I have an Access 97 database and at the end of a process I want to export some
tables to new database.

What I want to do is first create a new database and then copy some tables to
this new database.

When i tried to export a table with the transferdatabase method i got an error
message since the database is not existant at the time of the transfer. So I
presume I must create a database first. Then copy the tables and queries
after.

Is this possible with Access 97?

Thank tou in advance.

Felix.
Roger Carlson - 02 Mar 2005 19:47 GMT
Sure.  On my website (www.rogersaccesslibrary.com) is a small sample
database called "ImportToTempDatabase.mdb" which illustrates how to do this
for importing data without causing database bloat.  It should easily
transfer to your situation.

Signature

--Roger Carlson
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

> Hi,
>
[quoted text clipped - 14 lines]
>
> Felix.
Marshall Barton - 02 Mar 2005 19:58 GMT
>I have an Access 97 database and at the end of a process I want to export some
>tables to new database.
[quoted text clipped - 8 lines]
>
>Is this possible with Access 97?

Check Help for the CreateDatabase and CopyObject methods.

Signature

Marsh
MVP [MS Access]

John Vinson - 02 Mar 2005 20:04 GMT
>Hi,
>
[quoted text clipped - 10 lines]
>
>Is this possible with Access 97?

Yes; see the VBA help for the CreateDatabase method of the Application
object.

                 John W. Vinson[MVP]    
felixc36@yahoo.com - 05 Mar 2005 22:38 GMT
Thanks everyone.... with the create database method it worked fine.

>>Hi,
>>
[quoted text clipped - 17 lines]
>
>                  John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.