Query using three DB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello all

I have three data Bases named:
SCDB-2005
SCDB-2006
SCDB-2007 (Current used to enter datas)

the three DB has a query named:
AUTOMOTIVE MAIN Query wich it contain the same columns
I have three excel reports that are connected to these but the problem is
because one user is asking me to have a unique query with all information
from SCDB-2005 to SCDB-2007, could you please help me on this,


Note:
SCDB-2007 is the current DB were Produccion is entering datas
 
the best way seems to link tables from old database to the new one and
query everything in 1 shot selecting on multiple tables.
 
One of the many problems with splitting data
but
in the Frontend create a query similar to this:

SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2005.mdb'
UNION ALL
SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2006.mdb'
UNION ALL
SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2007.mdb'

And use this as the source for Excel

HTH

Pieter
 
Thank you So much, this Work perfectly
--
Lorenzo Díaz
Cad Technician


Pieter Wijnen said:
One of the many problems with splitting data
but
in the Frontend create a query similar to this:

SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2005.mdb'
UNION ALL
SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2006.mdb'
UNION ALL
SELECT A.* FROM MyTable A IN 'C:\Data\SCDB-2007.mdb'

And use this as the source for Excel

HTH

Pieter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top