Bill Bailey's Bulletin Board |
|
> <% Function GetReplies(con, id) SQL = "SELECT COUNT(fldAuto) FROM tblBulletin WHERE fldGroupID = " & id Set gr = con.Execute(SQL) GetReplies = gr(0) - 1 gr.Close Set gr = Nothing End Function Function GetLastPostDate(con, gid) SQL = "SELECT TOP 1 fldAuto, fldDate FROM tblBulletin WHERE fldGroupID = " & gid & " ORDER BY fldAuto DESC" Set glpd = con.Execute(SQL) GetLastPostDate = glpd(1) If GetLastPostDate = Date Then GetLastPostDate = "" & GetLastPostDate & "" End If glpd.close Set glpd = Nothing End Function %>