I have our office files set up in Access and we create a new database each
year entitled All Files 200__. I need to combine our databases from All
Files 2003 through All Files 2005 together into one database entitled All
Files 2003-2005.
Thanks for any help.
Beth81159
This can be almost trivially easy, or it can be an absolute nightmare,
depending on the structure of the tables. The nightmare scenario comes
when you've used Autonumber primary keys, linked to Long Integers in
related tables - and the primary key 123 exists in all three databases
referring to different information.
There are VERY good reasons why most developers consider creating a
new database every year to be a Very Bad Idea. You're now encountering
the main one - you will someday want to compare the data across years,
and need to combine them. Better would have been not to split them in
the first place; you can use *one single database*, with a date field,
and use Queries to select only the data for an individual year.
If you've been living virtuously and are very, very lucky, you may be
able to simply make a copy of All Files 2003.mdb, open it, use File...
Get External Data... Link to link to the tables in All Files 2004.mdb,
and run one or more Append queries to merge the data from the linked
tables into the local tables. As noted, this WILL FAIL if you have
primary keys duplicated between the databases; there are getarounds
but they depend on the structure of the database.
John W. Vinson[MVP]