Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date or datetime
I connect to an Oracle DB in MS Excel query. The format of the datetime
field in the DB is:- 2003-07-16 20:03:32 I want to be able to produce a prompted query from Excel I understand that the user can enter data into a cell and refresh the query, which will use the entered data as it's criteria. How do I do this? I want the user to enter two DATES (not Date Time or possibly date and 00:00:00)as a between (Start and End dates). -- Regards Dean www.dkso.co.uk/ http://homepage.ntlworld.com/dkso |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Date or datetime
Hi Dean,
I'm not sure if it will work with Oracle, but maybe you can try using a "?" in the SQL Statement, which should force MS Query to prompt for a parameter value. For example: SELECT * FROM tblData WHERE DataID ? -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] Dkso wrote: I connect to an Oracle DB in MS Excel query. The format of the datetime field in the DB is:- 2003-07-16 20:03:32 I want to be able to produce a prompted query from Excel I understand that the user can enter data into a cell and refresh the query, which will use the entered data as it's criteria. How do I do this? I want the user to enter two DATES (not Date Time or possibly date and 00:00:00)as a between (Start and End dates). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Datetime CSV format | Excel Discussion (Misc queries) | |||
Remove Time from DateTime | Excel Discussion (Misc queries) | |||
Convert text "date" (DDMMMYY) to datetime value of YYYY-MM-DD - ho | Excel Discussion (Misc queries) | |||
DateTime Format | Excel Programming | |||
datetime in query | Excel Programming |