ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Convert hard coded query criteria to Parameter Query (https://www.excelbanter.com/excel-discussion-misc-queries/194969-convert-hard-coded-query-criteria-parameter-query.html)

Melanie[_2_]

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


All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com