I can get a search between the ID numbers to work, but not a search between
dates.
I am working if the problem may be the way I have the dates formatted? The
dates entered in the Database where entered using Now() and the field
format was "DateTime"
Works
The following search for a range of ID numbers
Where DomainName = '#TargetURL#' AND ID BETWEEN 64112 AND 64579
Does not Work
The following search for a range of dates
<cfset StartDate = DateAdd("d", -1, DateConvert("local2utc", Now())) >
<cfset EndDate = DateConvert("local2utc", Now())>
Where BizName = '#TargetBIZ#' AND TransactionDateTime BETWEEN #EndDate# AND
#StartDate#
Thanks,
Nick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187496
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54