Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
rael_lucid
 
Posts: n/a
Default Parameter/Criteria option not available for External Data Query

Hi,

I have written a query in Excel which extracts data from an MS SQL database
and would like to add a date retriction as a parameter so that not all rows
are returned. Unfortunately though, the parameter option is greyed out. I am
even unable to add the parameter manually to the SQL query. Does this have
something to do with the complexity of the query?
  #2   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default Parameter/Criteria option not available for External Data Query

Display the criteria pane View--Criteria

Select a field and in the Value field type a parameter name in square
brackets like [parm1].

You can then select View-- parameters

For help look ínto the MS Query help for "parameter" and then "create
a new query" and then "create a parameter query".

When you leave MS Query on the next dialogue you can select
"Paremeters" and define "how a parameter value is obtained" which lets
you e.g. select a value from a cell on your worksheet.

Hans

  #3   Report Post  
Posted to microsoft.public.excel.misc
rael_lucid
 
Posts: n/a
Default Parameter/Criteria option not available for External Data Quer

thanks Hans, but unfortnately the Criteria option is not available

"flummi" wrote:

Display the criteria pane View--Criteria

Select a field and in the Value field type a parameter name in square
brackets like [parm1].

You can then select View-- parameters

For help look Ă*nto the MS Query help for "parameter" and then "create
a new query" and then "create a parameter query".

When you leave MS Query on the next dialogue you can select
"Paremeters" and define "how a parameter value is obtained" which lets
you e.g. select a value from a cell on your worksheet.

Hans


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
Copy old Data from web query while keeping previous days data DRobidoux Excel Worksheet Functions 0 March 22nd 06 01:56 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Formula Help Robert Excel Worksheet Functions 15 January 3rd 06 02:17 AM
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
1-variable Data Table dependent on MS Query fails to update correctly [email protected] Excel Discussion (Misc queries) 0 March 30th 05 07:43 PM


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