Wrox Programmer Forums
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 January 20th, 2006, 05:20 AM
Authorized User
 
Join Date: Jan 2006
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to InsouciantCoquette Send a message via Yahoo to InsouciantCoquette
Default Please Help Me.

Hie everybody. I'm new here. I have a problem. I'm currently under attachment. And my project requires me to do high levelling of ASP & Access Database. I have a question. Currently, I have multiple databases but I will summarise this. Let's say I have 2 database which are called Jan.mdb & Feb.mdb respectively. In these 2 database, I have tablename called MyTable. The values for these tables are exactly the same. So, can I join these 2 tables up to make them into 1 master database?If it is possible, can you please tell what should I do next? And how to reach my goal? I have never, I repeat never done this at school or in any of my experience in programming of ASP. I really need your help in this. Please. Thank you.
__________________
* Love me for a reason; Let the reason be love *
 
Old February 6th, 2006, 04:13 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

This is fairly easy to do. Create a copy of one of the databases and rename it so you know it is the master database. For example, change Jan.mdb to Master.mdb.

Then open Master.mdb, select Insert > Table > Import Table.

Find the second database, open it, find the matching table and select it, and then import all but the primary key field (I am assuming it is an autonumber field so it won't go - unless the PK field is not an autonumber, then you can bring it in) and import it into the existing table that it matches.

You can continue to do this for all subsequent copies of the database, pulling into the matching table.

You can do this offline. Just pull the databases out of your site, import all the data, and then paste the master back to your site and make the proper associations to it.

I am not sure how you would do this is ASP, but it is basically an append query.

HTH


mmcdonal









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