I'm trying to format a date within a SQL query against an Access
database.
In Oracle you can say TO_DATE(date,mask) but that function doesn't exist
in Access. What function is there in Access to do this?
Here is the query that doesn't work:
<cfquery datasource="abb" name="qSelClassInfo">
SELECT *
FROM classes
WHERE TO_DATE(ClassDate,'mm/dd/yy') = TO_DATE((
SELECT ClassDate FROM classes
WHERE id=#Form.ClassSel#),'mm/dd/yy')
</cfquery>
Note that Access stores date and time info in the same field. So I'm
trying to compare just the date portion since several classes can occur
on the same day.
-------------------------------------------------
Bruce Holm - Web Programmer
Lattice Semiconductor Corp.
[EMAIL PROTECTED]
-------------------------------------------------
______________________________________________________________________
Why Share?
Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists