Question
CFQUERY Issue
Group -
I have an Access Database that I'm trying to query. I'm trying to return all the records that's greater than 01/01/2003 for a particular company. The query works fine as long as have one or the other conditions but not when I include the AND to have both conditions. No results are displayed. Is this some kind of Access issue?
Any help would be appreciated.
<cfset new_date = #createodbcdatetime("1/1/2003")#>
<cfquery name="display" datasource='car'>
select [car id] as carid, [car date] as cardate
from [corrective actions] where [car date] > #new_date# and [car id] = 4599
</cfquery>
<cfoutput query='display'> #carid# -- #cardate# </cfoutput>
I have an Access Database that I'm trying to query. I'm trying to return all the records that's greater than 01/01/2003 for a particular company. The query works fine as long as have one or the other conditions but not when I include the AND to have both conditions. No results are displayed. Is this some kind of Access issue?
Any help would be appreciated.
<cfset new_date = #createodbcdatetime("1/1/2003")#>
<cfquery name="display" datasource='car'>
select [car id] as carid, [car date] as cardate
from [corrective actions] where [car date] > #new_date# and [car id] = 4599
</cfquery>
<cfoutput query='display'> #carid# -- #cardate# </cfoutput>
