I am trying to create a SQL query in Excel for a customer to run and generate a report. I have the query written but would like the where clause in query to reference a cell on the spreadsheet. Basically, the customer could update the cell and the script could be updated automatically to bring in the data from the SQL database.
I haven't had any luck editing the query syntax in the command text section of the Excel connection. Any ideas?
The query would be something similar to:
Select * from table where field = A1 -- A1 being the Excel cell where the users would edit before updating the spreadsheet.
Thanks
I haven't had any luck editing the query syntax in the command text section of the Excel connection. Any ideas?
The query would be something similar to:
Select * from table where field = A1 -- A1 being the Excel cell where the users would edit before updating the spreadsheet.
Thanks