Then use a parametrized query, see
Need Macro that will update the date in a sql script entered via GET DATA/SQL in Excel to refresh data in worksheets
Fantasia, Korena
0
Reputation points
I have a sql script that pulls data into a spreadsheet. I need to setup a means for end users to enter a different date into that script and then be able to refresh the output based on the new date.
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,046 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,358 questions