Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Date Parameter in an Excel Database Query

Status
Not open for further replies.

honorbum

Technical User
Aug 26, 2005
50
US
I'm pulling data from an Oracle server (Remedy) via an Excel Database Query. I'm trying to set a criteria paramenter based on a date field in Remedy so the person accessing the report can be prompted to enter a "Start Date" and "End Date" of the date range of data. So far everything I've thought of doesn't work. It says >=[Enter Start Date] AND <=[Enter End Date] will work but it doesn't. Any suggestions?
 


Hi,

The STRING format that Oracle expects is
[tt]
dd-mmm-yyyy
[/tt]
such as 02-Nov-2005

and the SQL should look like
Code:
MyDate>='[Start Date]' And MyDate<='[End Date]'
with [tic] marks around the date.

Skip,

[glasses] [red]Sign above the facsimile apparatus at the music publisher:[/red]
If it ain't baroque...
Don't FAX it![tongue]
 


Please post your SQL and the exact dates you entered.

Skip,

[glasses] [red]Sign above the facsimile apparatus at the music publisher:[/red]
If it ain't baroque...
Don't FAX it![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top