This should give you an idea:
If mLev > 0 Then
strSql = "SELECT M_ICQ FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & memberID
Set rsMemberICQ = my_conn.Execute(strSql)
If Not rsMemberICQ.EOF Then
strMemberICQ = rsMemberICQ("M_ICQ")
End If
rsMemberICQ.Close
Set rsMemberICQ = Nothing
If trim(strMemberICQ) = "" Then
'No ICQ value -> display error here
Else
'Do something else here
End If
Else
'User is not logged in, display error here
End If
Let me know if you have any questions.<