Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
phanatix
 
Posts: n/a
Default 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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Database Query Mark Ansonia Setting up and Configuration of Excel 1 November 4th 05 04:54 PM
AHHH! Again JAA149 Excel Discussion (Misc queries) 0 October 31st 05 11:36 AM
Input boxes in excel and MS Query David494 Excel Discussion (Misc queries) 0 June 21st 05 03:16 PM
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
New web query with Excel Pro Edition 2003 Chandler Links and Linking in Excel 2 December 15th 04 06:03 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"