I prefer to not give a link to the web page because it is password protected.
The code is long, but I will post most of the code. Hopefully, it will help. You can see my SQL String in red. The loop statement is bolded. I need some help with fixing the loop statement so I can get more than one event to show up for a particular date.
Note: I got this calendar application from http://www.asp-dev.com. I decided to modify it so people could see details for each event. This is not a feature on that calendar application.
%@ LANGUAGE="VBScript" %>
<%
Session.LCID = 2057
'-----------------------------------------------------------
' START OF CODE TO PUT AT THE TOP OF A PAGE NEEDING
' PASSWORD PROTECTING
'I got this application from http://www.asp-dev.com
dim variables
'Set connection details
Function FormatStr(String)
on Error resume next
String = Replace(String, CHR(13), "")
String = Replace(String, CHR(10) & CHR(10), "</P><P>")
String = Replace(String, CHR(10), "<BR>")
FormatStr = String
End Function
Dim dtToday, nIndex
dtToday = Date()
Dim dtCurViewMonth ' First day of the currently viewed month
Dim dtCurViewDay ' Current day of the currently viewed month
Dim frmDate ' Date submitted by form
' if the GO button was used, build the date from the month and year
If InStr(1, Request.Form, "subGO", 1) > 0 then
if Request.Form("CURDATE_month") = "" then
tmpMonth = month(now())
else
tmpMonth = Request.Form("CURDATE_month")
End If
 |