ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SQL variable exchange (https://www.excelbanter.com/excel-programming/366910-sql-variable-exchange.html)

Paul Shoemaker

SQL variable exchange
 
Hello,

I was wondering if it is possible for me take the datetimepicker date value
and execute a SQL query based on that variable? I am using VSTO 2005 and
Excel 2003 and have a data source hooked up to a column (with an initial
query already specified), I need to pick the date from the datetimepicker
control and have it update the query so as to re execute the query based on
the date (which, of course corresponds to an index table named 'row_date').

Thank you for your help.

Paul

NickHK

SQL variable exchange
 
Paul,
Check the Excel Help for "parameter_query".

NickHK

"Paul Shoemaker" <Paul wrote in message
...
Hello,

I was wondering if it is possible for me take the datetimepicker date

value
and execute a SQL query based on that variable? I am using VSTO 2005 and
Excel 2003 and have a data source hooked up to a column (with an initial
query already specified), I need to pick the date from the datetimepicker
control and have it update the query so as to re execute the query based

on
the date (which, of course corresponds to an index table named

'row_date').

Thank you for your help.

Paul





All times are GMT +1. The time now is 01:26 PM.

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