Combining Databases

Avslavedriver

Board Regular
Joined
Jun 22, 2004
Messages
55
I have two databases containing the same fields, is there anyway to combine them into 1 so i can query them together. - Thanks
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Yes, you can do a UNION query to combine them.

In order to do this, take the SQL from each query, and simply connect them with the UNION command, i.e.

SELECT ...
UNION
SELECT ...


Access Help also has a few simple examples of UNION queries.
 
Upvote 0
i know that works for 2 Tables, but how can i do two totally different databases, or maybe thats what you mean.

Please show an example
 
Upvote 0
Have you tried importing the data from the Table in one database to the corresponding Table in the other database? Then repeat for all Tables.
 
Upvote 0
or just create linking tables if you want to keep the bases seperate for some reason

you can then do your Unions on the links

Peter
 
Upvote 0

Forum statistics

Threads
1,221,799
Messages
6,162,030
Members
451,738
Latest member
gaseremad

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top