Thanks Jenny. You're right, not exactly what I needed, but at least it got me
to the neighborhood I needed to be so searching other information was easier.
Anyway, I got it to work as follows (I'm sure there are better ways to do it,
but it works for me :-)
<!--- GLOBAL VARIABLES for this page --->
<cfset todaysDate = DateFormat(Now(), "mm-dd-yyyy") >
<cfset todaysDate1 = DateFormat(DateAdd('d',1,todaysDate), "mm-dd-yyyy") >
<cfset todaysDate7 = DateFormat(DateAdd('d',7,todaysDate), "mm-dd-yyyy") >
<!--- Query Selects Leave Information Today Only --->
<cfquery name="rsGetLeaveToday" datasource="IntranetApp">
SELECT EmpFirstInitial,EmpLast,LeaveStart,LeaveLoc
FROM dbo.tbl_Leave
WHERE #CreateODBCDate(todaysDate)# between LeaveStart AND LeaveEnd
ORDER BY EmpLast ASC
</cfquery>
<!--- Query Selects Leave Information for Leave Next 7 Days--->
<cfquery name="rsGetLeaveEntire" datasource="IntranetApp">
SELECT EmpFirstInitial,EmpLast,LeaveStart,LeaveEnd,LeaveLoc
FROM dbo.tbl_Leave
WHERE LeaveEnd between #CreateODBCDate(todaysDate1)# and
#CreateODBCDate(todaysDate7)#
ORDER BY LeaveEnd ASC
</cfquery>
>Hi Jason,
>
>Not sure this will be the right way for you, but I tend to use datediff a
>lot more than Between.
>
>Jenny
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1501
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54