You might want to look at using the Access datediff function....
<cfquery name="get" datasource="barracuda_log">
SELECT *
FROM message_log_20391
WHERE datediff("d",timereceived,now()) <= 1
</cfquery>
Although note that languages aren't consistent as to whether they take
the time part into account with their datediff function (CF does, SQL
Server and Access don't)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264621
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4