A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to extract data from multiple Access databases to create a Pivot table



 
 
Thread Tools Display Modes
  #1  
Old February 4th, 2004, 03:56 PM
Android
external usenet poster
 
Posts: n/a
Default How to extract data from multiple Access databases to create a Pivot table

Hi,

An application system we have creates one MS-Access MDB file for each month,
which captures data by the hour. At the end of each month, the system
creates a file for the next month, which is then automatically updated each
hour during that month.

I have created a PivotTable & PivotChart which produces a table and chart
against one of these databases. Another sheet in the same workbook does the
same for the second month, etc.

I would like to produce one Pivot Table & Chart which captures data from all
of these.

My two related questions a
1) Is it possible to create a Pivot table which reads more than one MDB
file?.

2) I also looked into creating a Pivot Table which would read the other
Pivot tables in the worksheet. However the option to use "Another PivotTable
or PivotChart" is greyed out. Does anyone know how to enable it?

Regards..


  #2  
Old February 5th, 2004, 10:16 AM
onedaywhen
external usenet poster
 
Posts: n/a
Default How to extract data from multiple Access databases to create a Pivot table

You're probably going to give me a 'good' reason for using the
approach you are using, but I think your database strategy is wrong. I
would expect one table in one .mdn file, with a Date (or perhaps
Month) column to key the data by month. Then the solution to your
current problem is obvious.

--

"Android" wrote in message ...
Hi,

An application system we have creates one MS-Access MDB file for each month,
which captures data by the hour. At the end of each month, the system
creates a file for the next month, which is then automatically updated each
hour during that month.

I have created a PivotTable & PivotChart which produces a table and chart
against one of these databases. Another sheet in the same workbook does the
same for the second month, etc.

I would like to produce one Pivot Table & Chart which captures data from all
of these.

My two related questions a
1) Is it possible to create a Pivot table which reads more than one MDB
file?.

2) I also looked into creating a Pivot Table which would read the other
Pivot tables in the worksheet. However the option to use "Another PivotTable
or PivotChart" is greyed out. Does anyone know how to enable it?

Regards..

  #3  
Old February 5th, 2004, 03:01 PM
Android
external usenet poster
 
Posts: n/a
Default How to extract data from multiple Access databases to create a Pivot table

Hi,

My 'good' reason is that I don't have control over the .mdb files. These
are produced by the Nortel's BCM system which tracks calls to the Call
Centre.

The first column of the table I am using from this database does have the
date (one field which captures Year, Month, Day, Hour....).

I could not find a way in the Pivot tables to append one table to the other.
I think that would solve it.

Regards..

"onedaywhen" wrote in message
om...
You're probably going to give me a 'good' reason for using the
approach you are using, but I think your database strategy is wrong. I
would expect one table in one .mdn file, with a Date (or perhaps
Month) column to key the data by month. Then the solution to your
current problem is obvious.

--

"Android" wrote in message

...
Hi,

An application system we have creates one MS-Access MDB file for each

month,
which captures data by the hour. At the end of each month, the system
creates a file for the next month, which is then automatically updated

each
hour during that month.

I have created a PivotTable & PivotChart which produces a table and

chart
against one of these databases. Another sheet in the same workbook does

the
same for the second month, etc.

I would like to produce one Pivot Table & Chart which captures data from

all
of these.

My two related questions a
1) Is it possible to create a Pivot table which reads more than one MDB
file?.

2) I also looked into creating a Pivot Table which would read the other
Pivot tables in the worksheet. However the option to use "Another

PivotTable
or PivotChart" is greyed out. Does anyone know how to enable it?

Regards..



  #4  
Old February 6th, 2004, 09:44 AM
onedaywhen
external usenet poster
 
Posts: n/a
Default How to extract data from multiple Access databases to create a Pivot table

Well, if you *must* work with the system... I take it you are using MS
Query to get the data, so there will be an underlying SQL SELECT
statement. You need to change the SQL to append multiple SELECT
statements using the UNION keyword e.g. I just tested this one:

SELECT T1.RefID
FROM `C:\Tempo\New_Jet_DB_1`.PersonalDetails T1
UNION ALL
SELECT T2.RefID
FROM `C:\Tempo\New_Jet_DB_1`.PersonalDetails T2
ORDER BY 1

--

"Android" wrote in message ...
Hi,

My 'good' reason is that I don't have control over the .mdb files. These
are produced by the Nortel's BCM system which tracks calls to the Call
Centre.

The first column of the table I am using from this database does have the
date (one field which captures Year, Month, Day, Hour....).

I could not find a way in the Pivot tables to append one table to the other.
I think that would solve it.

Regards..

  #5  
Old February 6th, 2004, 03:22 PM
Android
external usenet poster
 
Posts: n/a
Default How to extract data from multiple Access databases to create a Pivot table

That was great. Thank you. Works well.

Android...

"onedaywhen" wrote in message
om...
Well, if you *must* work with the system... I take it you are using MS
Query to get the data, so there will be an underlying SQL SELECT
statement. You need to change the SQL to append multiple SELECT
statements using the UNION keyword e.g. I just tested this one:

SELECT T1.RefID
FROM `C:\Tempo\New_Jet_DB_1`.PersonalDetails T1
UNION ALL
SELECT T2.RefID
FROM `C:\Tempo\New_Jet_DB_1`.PersonalDetails T2
ORDER BY 1

--

"Android" wrote in message

...
Hi,

My 'good' reason is that I don't have control over the .mdb files.

These
are produced by the Nortel's BCM system which tracks calls to the Call
Centre.

The first column of the table I am using from this database does have

the
date (one field which captures Year, Month, Day, Hour....).

I could not find a way in the Pivot tables to append one table to the

other.
I think that would solve it.

Regards..



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.