ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I have in Excel SQL query computed constants like "? as Col1" (https://www.excelbanter.com/excel-discussion-misc-queries/56597-can-i-have-excel-sql-query-computed-constants-like-col1.html)

phanatix

Can I have in Excel SQL query computed constants like "? as Col1"
 
Trying to have a query that can set a constant in the select statement, for
example:
SELECT Author, '11/15/2005' as Updated, PublishDate
FROM Author
WHERE Author like 'A*'

Can I prompt the user for this value as an input, for example:
SELECT Author, ? as Updated, PublishDate
FROM Author
WHERE Author like 'A*'

Maybe with a prompt "Please enter Updated date".
Before resorting to VBA or Access, just want to see if it can be done in
Excel.


All times are GMT +1. The time now is 11:52 AM.

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