I don't know if I have the correct version but the problem must be on the comparison of 2 recordsets...
'### Returns List of Your Buddies
strSql = "SELECT " & strMemberTablePrefix & "Buddys.Buddy_ID, " & strMemberTablePrefix & "Buddys.budmemberid, " & strMemberTablePrefix & "Buddys.budbudid, " & strMemberTablePrefix & "members.m_name, " & strMemberTablePrefix & "members.member_id"
strSql = strSql & " FROM ("& strMemberTablePrefix & "Members INNER JOIN " & strMemberTablePrefix & "Buddys ON " & strMemberTablePrefix & "Members.Member_ID=" & strMemberTablePrefix & "Buddys.budbudID)"
strSql = strSql & " where ("& strMemberTablePrefix & "Buddys.budmemberid=" & getmemberID(strDBNTUserName) & ")"
rs.Open strSQL, my_Conn
'###
'### Returns Buddies Who Are Online
strSqlOnline = "SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME," & strMemberTablePrefix & "ONLINE.M_BROWSE"
strSqlOnline = strSqlOnline & " FROM (" & strMemberTablePrefix & "ONLINE INNER JOIN " & strMemberTablePrefix & "MEMBERS ON " & strMemberTablePrefix & "ONLINE.UserID =" & strMemberTablePrefix & "MEMBERS.M_NAME) INNER JOIN " & strMemberTablePrefix & "BUDDYS ON " & strMemberTablePrefix & "MEMBERS.MEMBER_ID = " & strMemberTablePrefix & "BUDDYS.BUDMEMBERID"
rsOnline.open strSqlonline, my_Conn
'###
I tried those on the SQL server and they have common records... I guest that the error must be here...
' List buddies
do until rs.eof
if not rsOnline.eof then
if rsOnline("M_NAME")= rs("m_name") then
onlinestatus = rsonline("M_BROWSE")
rsOnline.movenext
else
onlinestatus = "Offline"
end if
end if
if xx=0 then
CColor = strAltForumCellColor
else
CColor = strForumCellColor
End if
Any ideas??? why don't I get the status of my buddies??
thank you..
liqu1d magic