You need to modify the following statement
strSql = "SELECT TOP " & intTopPosters & " member_id, m_name, m_country, m_posts FROM " & strMemberTablePrefix & "MEMBERS ORDER BY M_posts DESC"
Modify the above statement as below
strSql = "SELECT "
if strDBType <> "mysql" then strSql = strSql & TOP " & intTopPosters
strSql = strSql & " member_id, m_name, m_country, m_posts FROM " & strMemberTablePrefix & "MEMBERS ORDER BY M_posts DESC"
if strDBType = "mysql" then strSql = strSql & " LIMIT " & intTopPosters & ";"
www.forumSquare.com - Rakesh Jain - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.