I've got a form in an admin system for a client to look up events
between entered dates:
<cfif IsDefined("form.depdate1") AND #form.depdate1# NEQ "">
<cfset DEPDATE1 = #CREATEODBCDATE(form.depdate1)#>
<cfset DEPDATE2 = #CREATEODBCDATE(form.depdate2)#>
</cfif>
....and in the query:
WHERE ENROLL_DATE BETWEEN #DEPDATE1# AND #DEPDATE2#
Works correctly about 95% of the time. The other times, it's returning
results outside the search range.
Weird, huh?
Ideas?
--
-----------
Les Mizzell
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210463
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