#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default MS Query

I am trying to use MS query to return data from a SQL Server Database
using an existing stored procedure.

How can I pass parameters to the sp from MS query? I'd like to keep
the parameters in worksheet cells.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default MS Query

I just discovered this trick and it's very cool. Set up
your parameters in MS query using the brackets []. The
first time you return data to Excel, it will prompt you
for values.

After the query is in Excel, right-click in the query
range. You will see a Parameter choice on the menu.
Click on that, and it will give you the option to specify
a cell location for your parameters.

Diane
-----Original Message-----
I am trying to use MS query to return data from a SQL

Server Database
using an existing stored procedure.

How can I pass parameters to the sp from MS query? I'd

like to keep
the parameters in worksheet cells.

Thanks
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default MS Query

What I'm really trying to do is run the SQL Server stored procedure
from MS Query and pass the parameters that the stored procedure needs
in order to run.

Thanks.
Dave


"Dmeade" wrote in message ...
I just discovered this trick and it's very cool. Set up
your parameters in MS query using the brackets []. The
first time you return data to Excel, it will prompt you
for values.

After the query is in Excel, right-click in the query
range. You will see a Parameter choice on the menu.
Click on that, and it will give you the option to specify
a cell location for your parameters.

Diane
-----Original Message-----
I am trying to use MS query to return data from a SQL

Server Database
using an existing stored procedure.

How can I pass parameters to the sp from MS query? I'd

like to keep
the parameters in worksheet cells.

Thanks
.

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
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 04:21 AM.

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"