| Activities for:
<%
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("rockdb/rocketdatb.mdb") & ";"
'sqlDate = "DELETE FROM calendar WHERE EventDate < #" & dDate & "#"
'Set objRSD = adoCon.Execute(sqlDate)
'If Err <> 0 Then
' Response.Write("Sorry, the connection to the database failed, please try again in a few minutes.")
' Response.Write Err.Description
'Else
'Response.Write("Previous Dates have been deleted!")
'adoConD.close
'Set adoConD = Nothing
' Set objRSD = Nothing
'End If
'Response.Write cDate(dDate)
sql = "SELECT * FROM calendar WHERE EventDate = #" & cDate(dDate) & "#"
Set objRS = adoCon.Execute(sql)
'Response.Write sql
If Err <> 0 Then
Response.Write("Sorry, the connection to the database failed, please try again in a few minutes.")
Response.Write Err.Description
Else
If objRS.EOF Then
Response.Write " No events for this date. Check back soon!! "
Else
While Not objRS.EOF
Response.Write "" & objRS("Event") & ""
Response.Write objRS("Place") & " "
Response.Write objRS("Comments") & " "
' Response.Write "" & objRS("Date") & dDate & " "
objRS.MoveNext
Wend
End If
End If
objRS.close
adoCon.close
Set adoCon = Nothing
%>
|