Here is the fix for this.
Lines 804 - 807 was changed from this:else
intF_COUNT = rs1("cnt") + rs1("SumOfT_REPLIES")
intF_TOPICS = rs1("cnt")
end if
to this:else
if IsNull(rs1("SumOfT_REPLIES")) then
intF_COUNT = rs1("cnt")
else
intF_COUNT = CLng(rs1("cnt")) + CLng(rs1("SumOfT_REPLIES"))
end if
intF_TOPICS = rs1("cnt")
end if
Lines 823 - 826 changed from this:else
intF_A_COUNT = rs1("cnt") + rs1("SumOfT_A_REPLIES")
intF_A_TOPICS = rs1("cnt")
end if
to this:else
if IsNull(rs1("SumOfT_A_REPLIES")) then
intF_A_COUNT = rs1("cnt")
else
intF_A_COUNT = CLng(rs1("cnt")) + CLng(rs1("SumOfT_A_REPLIES"))
end if
intF_A_TOPICS = rs1("cnt")
end if
Lines 862-863 changed from this:Response.Write "Total Topics: " & RS("SumOfF_TOPICS") & "<br />" & vbNewline
strSumOfF_TOPICS = rs("SumOfF_TOPICS")
to this:if IsNull(RS("SumOfF_TOPICS")) then
Response.Write "Total Topics: 0<br />" & vbNewline
strSumOfF_TOPICS = 0
else
Response.Write "Total Topics: " & RS("SumOfF_TOPICS") & "<br />" & vbNewline
strSumOfF_TOPICS = rs("SumOfF_TOPICS")
end if
Lines 874-875 changed from this:Response.Write "Total Archived Topics: " & RS("SumOfF_A_TOPICS") & "<br />" & vbNewline
strSumOfF_A_TOPICS = rs("SumOfF_A_TOPICS")
to this:if IsNull(RS("SumOfF_A_TOPICS")) then
Response.Write "Total Archived Topics: 0<br />" & vbNewline
strSumOfF_A_TOPICS = 0
else
Response.Write "Total Archived Topics: " & RS("SumOfF_A_TOPICS") & "<br />" & vbNewline
strSumOfF_A_TOPICS = rs("SumOfF_A_TOPICS")
end if
<