Couple of changes required to get this working on the non-recurring version:
if not(rs.EOF or rs.BOF) then
rs.MoveFirst
do until rs.EOF
if chkForumAccess(rs("FORUM_ID"),MemberID,FALSE) then
if len(strDates) > 0 then strDates = strDates & ","
strDates = strDates & rs("T_EVENT_DATE")
end if
rs.MoveNext
loop
else
blnNoDates = TRUE
end if
Also, need to add FORUM_ID to the SELECT and GROUP BY clauses in the query just before this code block:
strSql = "SELECT T_EVENT_DATE, FORUM_ID FROM " & strTablePrefix & "TOPICS " & _
"WHERE (T_ISEVENT=1) " & _
"AND (T_EVENT_DATE >= '" & datetostr(DateSerial(Year(dateToDraw),Month(dateToDraw),1)) & "') " & _
"AND (T_EVENT_DATE < '" & datetostr(DateSerial(Year(dateToDraw),Month(dateToDraw)+1,1)) & "') " & _
"GROUP BY T_EVENT_DATE, FORUM_ID " & _
"ORDER BY T_EVENT_DATE Asc"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open StrSql, My_conn
Works great.. this had always bugged me.
<