ADO Copy Tables from One Database to Another (Access 97) 
Author Message
 ADO Copy Tables from One Database to Another (Access 97)

Hello everyone,
I'm using an Access 97 database (we'll call it main) it has about 30 tables
in it. I need to write a VB program that will create another Access 97
database (we'll call it destination). Once the Destination database is
created I need the VB program to duplicate 10 of the tables from the Main
database and put them in the Destination database. Doing so I need to insure
that the indexes and if possible the relationships are intact in the
Destination database. The VB program needs to be all automatic with no user
picking which tables to move.

Is there a way to do this through ado or dao or Vb in general?
If so could you guide me to an good example that explains how to do this?

Thanks you,
David P. Leone



Sun, 06 Oct 2002 03:00:00 GMT  
 ADO Copy Tables from One Database to Another (Access 97)
i had to do a similar project once that only involved re-creating
tables and relationships. i used DAO to write the definitions to text
files using an INI format, then importing the definitions from the
text files into collections, and then re-creating the database objects
from the collections. if the source database is always the same and
the tables/relationships never change, you could skip writing the
definitions to text files. DAO is pretty well documented in Access --
check out the help files for examples.



Quote:
>Hello everyone,
>I'm using an Access 97 database (we'll call it main) it has about 30 tables
>in it. I need to write a VB program that will create another Access 97
>database (we'll call it destination). Once the Destination database is
>created I need the VB program to duplicate 10 of the tables from the Main
>database and put them in the Destination database. Doing so I need to insure
>that the indexes and if possible the relationships are intact in the
>Destination database. The VB program needs to be all automatic with no user
>picking which tables to move.

>Is there a way to do this through ado or dao or Vb in general?
>If so could you guide me to an good example that explains how to do this?

>Thanks you,
>David P. Leone



Tue, 08 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. vba code to copy table from access 97 to excel 97

2. Copying the structure of one Access table to a new Access table

3. To Copy table from one Access database to other

4. MS Access DB - Copy Table A from Database A to Table A Database B

5. need to copy data from one field to another in access 97

6. Copying the contents of a table in one database to another database

7. Copying the contents of a table in one database to another database

8. copying an access 97 table

9. Access 97: How to create a copy of the current db database (including relations)

10. Relinking Access 97 tables using ADO

11. Relinking Access 97 tables using ADO...

12. ADO using 3.51 with Links to Access 97 tables

 

 
Powered by phpBB® Forum Software