MS Access Query/CFMAIL Problem
Hi All,
I'm having a bit of a problem...and I figure its a simple error on my part but I'm not sure what I'm missing. Any help would be appreciated.
Situation: I'm trying to have the system send an e-mail to our Marketing reps every day IF they have something on the calendar.
Problem: For some reason it appears that my system isn't returning anything from the DB to send the e-mail...even though something is there.
Supporting Tools: MS Access DB (Date Field Formatted mm/dd/yyyy)
Get Code:
<cfoutput query="getTodayMkEvents">
<br />
User EMail: #uWkEmail#
<br />
<b>Event: </b> #mkEvent#
<br />
<b>Date/Location:</b> #DateFormat(mkDate, 'MM/DD/YYYY')# / #mkLocation#
<br />
<b>Time:</b> #mkTime#
<br />
<b>Note:</b> #mkNote#
<br />
<br />
</cfoutput>
Query Code:
<!--- Retrieve Today's Marketing Events --->
<cffunction name="listTodayMkEvents" returntype="query">
<cfargument name="ODBCTODAY" required="yes" type="date">
<cflock timeout="30">
<cfquery name="getTodayMkEvents" datasource="#REQUEST.DataSource#">
SELECT *
FROM claimrepappt
WHERE mkDate = #ODBCTODAY#
</cfquery>
</cflock>
<cfreturn getTodayMkEvents>
</cffunction>
