Try using the BETWEEN
<CFQUERY name="getwweb" datasource="wwebsales">
SELECT * FROM wwebsales
<CFIF #FORM.orderdate# IS NOT "">
Where startdate BETWEEN orderdate and enddate
</CFIF>
</cfquery>
best wishes,
-= Ed
Problems cannot be solved at the same
level of awareness which created them.
- Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists