Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default 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
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
Datetime CSV format kh[_2_] Excel Discussion (Misc queries) 1 November 13th 08 09:08 AM
Remove Time from DateTime [email protected] Excel Discussion (Misc queries) 5 September 18th 08 08:57 PM
Convert text "date" (DDMMMYY) to datetime value of YYYY-MM-DD - ho j.a. harriman Excel Discussion (Misc queries) 7 March 29th 07 01:20 AM
DateTime Format Joe Harriman Excel Programming 1 October 3rd 03 02:57 PM
datetime in query Ling[_2_] Excel Programming 1 August 8th 03 05:08 PM


All times are GMT +1. The time now is 06:42 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"