I am having problems with a calendar that I set up on
http://www.bethedenmbc.org/calendar.asp. Please go to the bottom of the calendar. Click on February and 2005 and then submit the Go button. You will see that it is not working properly. Can someone please help me to fix this code?
Here's my code (the bolded parts of the code are significant):
[Code]
'Set connection details
SqlString = "Select * From Calendar"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sqlString, connectionString, adOpenDynamic, adLockOptimistic
%><%
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
Dim tmpMonth
Dim tmpyear
Dim tmpDate
Dim mnth
Dim CurDate
' if the GO button was used, build the date from the month and year
If InSt