ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pull parameter from worksheet for External Data Query to SQL Datab (https://www.excelbanter.com/excel-discussion-misc-queries/121855-pull-parameter-worksheet-external-data-query-sql-datab.html)

Matt J

Pull parameter from worksheet for External Data Query to SQL Datab
 
I have a query to an SQL database that runs through an ODBC link. I want two
parameters pulled form cells filled in by the user to me used as parameters
in the query.

For example CELL C1= month and F1 = year

in external data query ...

......
where month(table.field) = CELL-C1 and year(table.field) = CELL-F1.

Can I do this?

I've read all about a parameterized query but "parameters" is not enabled
for external data.

What am I missing?


All times are GMT +1. The time now is 06:16 AM.

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