I have a call log database that is currently populating quite well.
Later, after the db is updated another person is expected to review and close the call.
At day's end we need to see what calls are still open and what calls have been closed. When we do the initial entry we are not inputting any data into the closedate field.
Therefore when we go to run our reports at day's end we're running this query:
<cfquery name="getlogs" datasource="#application.DS#">
select *
from calllog
where group = '#url.group#'
<cfif url.action is "closed">
and closedate <> ''
<cfelseif url.action is "open">
and closedate = ''
</cfif>
</cfquery>
We get all of the closed logs just fine, but none of the open logs are coming through. We've tried change it from closedate = '' to = NULL, 'NULL', ' ' - we're probably just missing something obvious, but we can't see it.
HELP!
Thanks! =)
Roger
Later, after the db is updated another person is expected to review and close the call.
At day's end we need to see what calls are still open and what calls have been closed. When we do the initial entry we are not inputting any data into the closedate field.
Therefore when we go to run our reports at day's end we're running this query:
<cfquery name="getlogs" datasource="#application.DS#">
select *
from calllog
where group = '#url.group#'
<cfif url.action is "closed">
and closedate <> ''
<cfelseif url.action is "open">
and closedate = ''
</cfif>
</cfquery>
We get all of the closed logs just fine, but none of the open logs are coming through. We've tried change it from closedate = '' to = NULL, 'NULL', ' ' - we're probably just missing something obvious, but we can't see it.
HELP!
Thanks! =)
Roger