Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to get Excel to retrieve aggregate data from Access

I'm trying to get aggregate data (SUM) from a multitable .mdb in Access using
an Excel VBA macro. The aggregate uses three tables and four or five limiting
criteria. I'm simply trying to retrieve a single aggregate figure from Access
rather than a worksheet full of data that requires further Excel calculations.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default How to get Excel to retrieve aggregate data from Access

For a single cell query like this it is easiest to use the worksheet function
SQL.REQUEST (see Help for details). Your SQL query can return a sum and you
can effectively have "parameters" if you concatenate cell values as part of
your query string, e.g:
"SELECT SUM(PROFIT) FROM SALES WHERE STATE='"&A1&"'")
--
- K Dales


"Don MacKinnon" wrote:

I'm trying to get aggregate data (SUM) from a multitable .mdb in Access using
an Excel VBA macro. The aggregate uses three tables and four or five limiting
criteria. I'm simply trying to retrieve a single aggregate figure from Access
rather than a worksheet full of data that requires further Excel calculations.

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
How to retrieve the value within the table from Access into Excel? Eric Excel Discussion (Misc queries) 1 April 18th 06 09:19 PM
Why do OWC charts aggregate data when Excel doesn't? Floored Charts and Charting in Excel 0 December 28th 05 02:34 AM
Use ADO to retrieve data from Access Parameter Query CodeMonkey Excel Programming 3 December 17th 04 08:45 PM
Access and retrieve data from network workbook Max Potters Excel Programming 9 August 18th 04 01:05 AM
Access and retrieve data from network workbook Max Potters Excel Programming 0 August 17th 04 12:41 PM


All times are GMT +1. The time now is 01:56 AM.

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

About Us

"It's about Microsoft Excel"