View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Melanie[_2_] Melanie[_2_] is offline
external usenet poster
 
Posts: 1
Default Convert hard coded query criteria to Parameter Query

I have a query created via Microsoft SQL Server Management Studio that has
hard coded criteria (see below). I would like to convert this query to a
parameter query. Because the query was not created initially as a parameter
query, the €śQuery Parameters€ť icon is not available.

Is it possible to modify the syntax so that the criteria below can be
entered in 4 separate cells in Excel?

WHERE T2.[GroupMask] ='6' and T2.[GroupMask] <= '6' and T0.[RefDate] =
'01/01/03' AND T0.[RefDate] <= '06/20/08'

--
Thanks, Melanie