Compare Dynamic Field to db Entry
am 22.10.2005 20:13:24 von Simon GareHi
I need to compare a dynamic field in an asp page to a field in another
table, if there is no match then i would like to chane the row colour ( see
code below).
The problem Im having is that the comparison should be one of many entries
in that db field, at the moment it only compares the first field in the db.
Please Help
Record = Recordset1.Fields.Item("COLL_CITY_TOWN").Value
Record2 = Recordset2.Fields.Item("TOWN").Value
If Record = Record2 Then
strbgcolor="#FFCC66"
Else
strbgcolor="silver"
End If
%>
bgcolor="<%=strbgcolor%>">
Regards
Simon