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 do i make excel open a new workbook and run a query from sql

I would like to create an excel file that would use an odbc connection to a
database, using microsoft query and return a summarized report. Then i would
like it to be able to give me the break down, on double clicking a certain
cell of that summary in a new workbook and run a similar sql query to return
the data for that cell only, using say i clicked on f20, to use a20, b20 and
c20 as inputs for the new query as a pin point query detail.

Any assistance would be appreciated greatly. No matter how small, just even
opening a new workbook from double clicking on a existing workbook cell that
has a query behind it.

Thanx in advance.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do i make excel open a new workbook and run a query from sql

Tom, Could you show me a sample script or direct me to how that can be done?

"Tom Ogilvy" wrote:

Sounds like you just want a pivot table using an external database.

If you double click on a summary cell in the pivot table, it should produce
a separate sheet with the detail that makes up that summary.

--
Regards,
Tom Ogilvy

"Dhruv Sampat" <Dhruv wrote in message
...
I would like to create an excel file that would use an odbc connection to

a
database, using microsoft query and return a summarized report. Then i

would
like it to be able to give me the break down, on double clicking a certain
cell of that summary in a new workbook and run a similar sql query to

return
the data for that cell only, using say i clicked on f20, to use a20, b20

and
c20 as inputs for the new query as a pin point query detail.

Any assistance would be appreciated greatly. No matter how small, just

even
opening a new workbook from double clicking on a existing workbook cell

that
has a query behind it.

Thanx in advance.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do i make excel open a new workbook and run a query from sql

See Debra Dalgleish's site for information on Pivot Tables:

http://www.contextures.com/tiptech.html

--
Regards,
Tom Ogilvy

"Dhruv Sampat" wrote in message
...
Tom, Could you show me a sample script or direct me to how that can be

done?

"Tom Ogilvy" wrote:

Sounds like you just want a pivot table using an external database.

If you double click on a summary cell in the pivot table, it should

produce
a separate sheet with the detail that makes up that summary.

--
Regards,
Tom Ogilvy

"Dhruv Sampat" <Dhruv wrote in message
...
I would like to create an excel file that would use an odbc connection

to
a
database, using microsoft query and return a summarized report. Then i

would
like it to be able to give me the break down, on double clicking a

certain
cell of that summary in a new workbook and run a similar sql query to

return
the data for that cell only, using say i clicked on f20, to use a20,

b20
and
c20 as inputs for the new query as a pin point query detail.

Any assistance would be appreciated greatly. No matter how small, just

even
opening a new workbook from double clicking on a existing workbook

cell
that
has a query behind it.

Thanx in advance.






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
Make Workbook Password protected tp open Stockwell43 Excel Discussion (Misc queries) 4 July 2nd 08 12:44 AM
External data query leaves datasource workbook open WhytheQ Excel Discussion (Misc queries) 0 May 4th 06 03:54 PM
workbook open query labrev Excel Programming 2 October 12th 05 09:56 PM
Running a query from an open workbook Dave M.[_2_] Excel Programming 1 September 20th 05 02:17 AM
How do I make an open workbook the active workbook Don Guillett[_4_] Excel Programming 0 December 30th 03 04:28 PM


All times are GMT +1. The time now is 09:07 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"