Christopher Jordan wrote:
> Simple: Because CreateODBCDateTime(now()-1) doesn't cover the proper 
> time span that he needed to cover. He needed to check for entries in the 
> database that occurred between midnight yesterday (00:00:00) and 
> 23:59:59 of today. now()-1 doesn't give that sort of control.
> 
> Claude Schneegans wrote:
>> Gee, why not simply use this:
>> where timereceived between #createODBCDate(now()-1)# and 
>> #createODBCDate(now())#
>>

However....
WHERE timereceived >= #createODBCDate(now()-1)# AND
timereceived < #createODBCDate(now()+1)#
would cover that range.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:264718
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to