Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I want to copy selected MS-Access database table in new access database table.
My application is having check-boxes to select table name to copy from access database and on selection i need to create new access database (.mdb) file and copy particular selected tables from old database to newly created database.

How can I do this?

Please help me...

Thanks...

What I have tried:

I have tried code to create access database but it is not sufficient. I don't know how to copy only table with it's structure from old to new one.
Posted
Updated 8-Nov-16 19:37pm

1 solution

Google[^] gives you details how to get the table definitions from Access.

Then you create a connection to your new MDB and create the tables.

OR

Copy the source MDB, make a connection to it and drop the table that are NOT selected.

Then delete the data from the tables in the new MDB.
 
Share this answer
 
Comments
virus131 9-Nov-16 3:43am    
Thank you for solution... Will try this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900