Try the following function:
Function GetFieldPos(prs,pstrField)
GetFieldPos = -1
For intC = 0 to prs.Fields.Count - 1
if ucase(prs.Fields(intC).Name) = ucase(pstrField) then
GetFieldPos = intC
exit for
end if
Next
End Function
e.g
fT_VIEW_COUNT = GetFieldPos(rs,"T_VIEW_COUNT")
fTOPIC_ID = GetFieldPos(rs,"TOPIC_ID")
fT_SUBJECT = GetFieldPos(rs,"T_SUBJECT")