It should be easy using the link mmc98dl1 suggested.
In the calendar, make the "Day" number a link
<td><a href="YourEventPage.cfm?se
Then run a query to get any events for the the selected date. Though, you should also validate the url parameter is a date in the correct format.
<!--- default to current date if nothing was selected --->
<cfparam name="url.selDate" default="#DateFormat(now()
<cfquery name="getEvents" datasource="YourDataSource
SELECT EventName, EventDetails
FROM YourTable
<!---- should store as date/time not text --->
WHERE EventDate = <cfqueryparam value="#url.selDate#" cfsqltype="cf_sql_varchar"
</cfquery>
Show events for #url.selDate#:<br>
<cfoutput query="getEvents">
Event Name: #EventName#<br>
Details: #EventDetails#<br><br>
</cfoutput>
> dates are entered into Access as text. (in the following format: 10-17-2007)
BUT .. its better to store date values in a "date/time" field so you can take advantage of CF's or your db's date functions. When you store values as text, searching for "9/7/2007" won't find any matches if the date is entered as "09/07/2007" (ie one has leading zeroes the other doesn't). You can get around this by using a db function to convert the strings to a "date" but that's less efficient and more error prone than just storing them as a date/time in the first place.
Main Topics
Browse All Topics





by: mmc98dl1Posted on 2007-11-22 at 19:44:39ID: 20337241
check out Ben Nadels blog post on how to print a calender:
dex.cfm?da x=blog:663 .view
http://www.bennadel.com/in
you should be able to adapt this so the link can go off to a page that has your events on it.