I have tried to edit the SQL-syntax and include the forum_id for the forum room I just want to be counted but it just gives me error.
I guess there can't be two "WHERE" argument in a statement...?
strSql = "SELECT COUNT(REPLY_ID) AS PostCount FROM " & strTablePrefix & "TOPICS INNER JOIN " & strTablePrefix & "REPLY ON " & strTablePrefix & "TOPICS.TOPIC_ID = " & strTablePrefix & "REPLY.TOPIC_ID WHERE T_DATE LIKE '" & intYear & strMonth & "%' OR R_DATE LIKE '" & intYear & strMonth & "%' & WHERE FORUM_ID = 2"
What I'm trying to do is the count only the posts in forum with id 2 (one of 16 forum rooms)