dfwalton
Programmer
- Jul 24, 2002
- 143
This is weird and driving me nuts. I have a table that has 3 rows.
The last col is a rate applicable during the periods defined by the 2 date fields.
Query is:
For a date between 4/1/2010 and 3/31/2011, it works like a charm. For any date on or after 4/1/11 it returns no rows.
I had the same experience earlier this week getting a MS SQL server Stored Proc to return the same data propery.
Any ideas??
Thanks
Code:
Bay 2010-04-01 00:00:00.000 2011-03-31 00:00:00.000 35.7500
Bay 2011-04-01 00:00:00.000 2012-03-31 00:00:00.000 36.7500
Bay 2012-04-01 00:00:00.000 2013-03-31 00:00:00.000 37.7500
Query is:
Code:
<cfquery datasource="#ds#" name = "qryCrewFee">
select *
from crewFee
where '#Form.EventDate#' between
Crewfee.startDate and CrewFee.endDate
</cfquery>
For a date between 4/1/2010 and 3/31/2011, it works like a charm. For any date on or after 4/1/11 it returns no rows.
I had the same experience earlier this week getting a MS SQL server Stored Proc to return the same data propery.
Any ideas??
Thanks