Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

merging two access database

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
does anyone know how to merge two access database into one?

i have tha main database called cb200.. and i have anotherone cb199 and i want to merge cb199 to cb200...

how can i do that?
thank you
 
Are they structured the same? If so, just write an append query like:
Code:
INSERT INTO cb200
SELECT * FROM cb199;

Like I said, this will only work IF your tables are structured the same (same field names). If not, you will have to specifically select the fields to import and import into.


Terry M. Hoey
th3856@txmail.sbc.com

Ever notice that by the time that you realize that you ran a truncate script on the wrong instance, it is too late to stop it?
 
Hi,
Do what Terry suggested but include the "IN" clause in your SQL statement to access external tables. Also, watch out for duplicate value violations among indexed or primary key fields... combining databases can get tricky. I've created many applications for different databases to do this, so I have tons of experience here - many different ways to go about it.

Rob Marriott
rob@career-connections.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top