Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Exporting data to Excel pivot table from Access

Hello,

Is there a way to take the results of a select query in an Access database
and export those records to the 'Source' tab of an Excel spreadsheet, and
thus over-write the data that was there to provide 'refreshed' data for the
Pivot Table?

I'd like to put this code behind a command button in my Access application.
Is this possible?
--
Thank you, Patrick
  #2   Report Post  
Posted to microsoft.public.excel.misc
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Exporting data to Excel pivot table from Access

Hi Pat,

Try: (this is n Excel 2003)
1. Select Data
2. Select External Data
3. Select Import Data
4. In the "Select Data Source" dialog box navigate to the source Access
database and select it.
5. Select your query from the ""Select Tables" dialog box.

You will then be asked where you want your data to reside. My guess is that
you wll be able to record these keystrokes as a macro and then assign it ot a
macro.

HTH

John.



"Pat Dools" wrote:

Hello,

Is there a way to take the results of a select query in an Access database
and export those records to the 'Source' tab of an Excel spreadsheet, and
thus over-write the data that was there to provide 'refreshed' data for the
Pivot Table?

I'd like to put this code behind a command button in my Access application.
Is this possible?
--
Thank you, Patrick

  #3   Report Post  
Posted to microsoft.public.excel.misc
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Exporting data to Excel pivot table from Access

Excuse me! I meant assign the macro to an object.

John

"JCS" wrote:

Hi Pat,

Try: (this is n Excel 2003)
1. Select Data
2. Select External Data
3. Select Import Data
4. In the "Select Data Source" dialog box navigate to the source Access
database and select it.
5. Select your query from the ""Select Tables" dialog box.

You will then be asked where you want your data to reside. My guess is that
you wll be able to record these keystrokes as a macro and then assign it ot a
macro.

HTH

John.



"Pat Dools" wrote:

Hello,

Is there a way to take the results of a select query in an Access database
and export those records to the 'Source' tab of an Excel spreadsheet, and
thus over-write the data that was there to provide 'refreshed' data for the
Pivot Table?

I'd like to put this code behind a command button in my Access application.
Is this possible?
--
Thank you, Patrick

  #4   Report Post  
Posted to microsoft.public.excel.misc
JCS JCS is offline
external usenet poster
 
Posts: 93
Default Exporting data to Excel pivot table from Access

In Access, you would:
Create a new macro
Select OpenQuery in one Action line. Fill in the text boxes at bottom of
macro for this action.
Select TransferSpreadsheet on the second action line of your macro. Fill in
the text boxes at bottom of macro for this action. The text boxes are
self-explanatory.

HTH,
John


"Pat Dools" wrote:

Hello,

Is there a way to take the results of a select query in an Access database
and export those records to the 'Source' tab of an Excel spreadsheet, and
thus over-write the data that was there to provide 'refreshed' data for the
Pivot Table?

I'd like to put this code behind a command button in my Access application.
Is this possible?
--
Thank you, Patrick

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Pivot Table connected to an Access Database Data Source Alex Zimmerhaven Excel Discussion (Misc queries) 2 June 10th 08 03:04 AM
Access Create Excel Pivot Table Data Source [email protected] Excel Discussion (Misc queries) 0 July 12th 06 09:35 PM
exporting data from access to excel [email protected] Excel Discussion (Misc queries) 1 April 11th 06 10:17 AM
Exporting data from access to excel vinayak Excel Worksheet Functions 0 April 11th 06 08:20 AM
exporting summary data for pivot table! via135 Excel Worksheet Functions 2 February 2nd 06 06:16 PM


All times are GMT +1. The time now is 04:38 PM.

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

About Us

"It's about Microsoft Excel"