If rs("nodename") NOT = "Home" Then

should be:
Code:
if UCase(rs.Fields("nodename")) <> "HOME" Then
the above guarantees that the case issue is resolved, (and i'm assuming it's a field)

HTH