Buongiorno ho un grosso problema che non riesco a risolvere:
quando nella condizone if vado a testare questo:


if (rs1("DMC_IVR")<>rs1("TIMOTY_IVR")) or (rs1("DMC_IVR")<>rs1("DWHC_IVR")) then

colore = "#ff0000"
codice1=rs1("DMC_IVR")

elseif (rs1("DMC_IVR")=rs1("TIMOTY_IVR")) or (rs1("DMC_IVR")=rs1("DWHC_IVR")) then

colore = "#000000"
codice2=rs1("DMC_IVR")

else
colore = "#000000"
codice3=rs1("DMC_IVR")

end if


non mi funziona, o mi colora tutto in rosso o tutto in nero..non so come fare.


<th bgcolor="#DCDCDC" scope="col" colspan="4">TIMOTY</th>
<th bgcolor="#DCDCDC" scope="col" colspan="3">DWHC</th>
<th bgcolor="#DCDCDC" scope="col" colspan="3">DMC</th>



<thead>
<tr>
<th>DATA</th>
<th>IVR</th>
<th>WEB</th>
<th>ASP</th>

<th>IVR</th>
<th>WEB</th>
<th>ASP</th>

<th>IVR</th>
<th>WEB</th>
<th>ASP</th>


</tr>
</thead>

<%
if not rs1.eof then
do while not(rs1.eof)


dim colore
dim codice1
dim codice2
dim codice3
colore ="#000000"

codice1 = rs1("DMC_ivr")
codice2=rs1("DMC_web")
codice3=rs1("DMC_asp")


response.write rs1("Dmc_IVR")
if (rs1("DMC_IVR")<>rs1("TIMOTY_IVR")) or (rs1("DMC_IVR")<>rs1("DWHC_IVR")) then

colore = "#ff0000"
codice1=rs1("DMC_IVR")

elseif (rs1("DMC_IVR")=rs1("TIMOTY_IVR")) or (rs1("DMC_IVR")=rs1("DWHC_IVR")) then

colore = "#000000"
codice2=rs1("DMC_IVR")

else
colore = "#000000"
codice3=rs1("DMC_IVR")

end if

%>





<tr>
<td><font size="2" face="verdana"><%response.write(rs1("DATA_INIZIO_S ETTIMANA"))%></font></td>
<td><font size="2" face="verdana"><%response.write(rs1("TIMOTY_IVR")) %></font></td>
<td><font size="2"face="verdana"><%response.write(rs1("TIMOT Y_WEB"))%></font></td>
<td><font size="2"face="verdana"><%response.write(rs1("TIMOT Y_ASP"))%></font></td>
<td><font size="2" face="verdana"><%response.write(rs1("dwhc_IVR"))%> </font></td>
<td><font size="2"face="verdana"><%response.write(rs1("dwhc_ WEB"))%></font></td>
<td><font size="2"face="verdana"><%response.write(rs1("dwhc_ ASP"))%></font></td>
<td><font size="2" color="<%=colore%>" face="verdana">
<%response.write(codice1)%> </font></td>
<td><font size="2" color="<%=colore%>" face="verdana">
<%response.write(codice2)%> </font></td>
<td><font size="2" color="<%=colore%>" face="verdana">
<%response.write(codice3)%> </font></td>
<td><font size="2" color="<%=colore%>" face="verdana">

<%

rs1.movenext
loop
end if
rs1.Close
Set rs1 = Nothing

end if