Ask a Question related to Coldfusion Database Access, Design and Development.
-
gr8white #1
QoQ date filter
I thought this would be straightforward but apparently not. I have a query
that selects a date field from an Oracle table. I then want a query of queries
to return those rows where the date is between two values represented by form
parameters.
I have searched in vain for the answer to this. I thought
...where date_field between #CreateODBCDate(begindate)# and
#CreateODBCDate(enddate)#
should work but that causes a Query Of Queries syntax error (the SQL shown
with the error confirms the ODBC date is created correctly).
Some references suggest I should use CFQUERYPARAM but I haven't had any luck
with my attempts to do so.
Any suggestions?
Ken
gr8white Guest
-
JSObject returns wrong date. How can Iextract correct date from digital signature?
I'm trying to extract name and date from digital signatures by using JSObject in Excel VBA, but JSObject returns wrong date. Year, month, hour and... -
#40499 [NEW]: filter sapi does not register any highlightning filter
From: php at henke37 dot cjb dot net Operating system: any PHP version: 6CVS-2007-02-15 (CVS) PHP Bug Type: Apache2 related... -
Data Grid Header Filter Renderer or how do I get aheader to filter the data in a datagrid.
Okay so on the same theme as why isn't the datagrid like Excel, I have created a (very cool) Filter header. 1) The filter looks like any other... -
Filter records by date and time
any chance to help me on this pls .. can anyone tell me how i can sort my table by date and time i wanna put down specific DATE and TIME into my db... -
testing for a null Date in the Filter property of a RecordSet object?
Hello, I am new to using the filter property. When I try publishDate = '' I get a type mismatch error. Any ideas? Thanks Rich -
paross1 #2
Re: QoQ date filter
I havent tried this in a Q-of-Q, but you might try using the ParseDateTime()
function to create your date/time object, rather than CreateODBCDate. Something
like this?
....where date_field between #ParseDateTime(begindate)# and
#ParseDateTime(enddate)#
Phil
paross1 Guest
-
gr8white #3
Re: QoQ date filter
Phil, thanks for the suggestion.
I did finally get this to work using CFQUERYPARAM (and also correcting a
syntax error that was getting in the way). For the benefit of anyone else who
might run into this issue, the solution is below.
Ken
where scan_date between <cfqueryparam cfsqltype="cf_sql_date"
value="#begindate#">
and <cfqueryparam cfsqltype="cf_sql_date" value="#enddate#">
gr8white Guest



Reply With Quote

