I'm not sure where mrs("Rechde") is being updated before you read the file but I would be checking before writing the record to the database to ensure, worse case, that you have a 0 in there. There should be a setting for default value. It appears that your value is Null in which case -
Will this work?
<% if mrs("Rechde") < 10 or IsNull(mrs("Rechde") ) then %>
<td width="48" style='background-color:#F
<font color="#000099" face="ms sans serif, arial, verdana" size="1">
<% = mrs("Rechde") %>
</font>
</td>
<% else %>
<td width="48" align="center" >
<font color="#000099" face="ms sans serif, arial, verdana" size="1">
<% = mrs("Rechde") %>
</font>
</td>
<% end if %>
Main Topics
Browse All Topics





by: AmitavaChPosted on 2009-11-07 at 01:49:27ID: 25765625
File No.: 1 (Index.txt) Form Validation: Ser.value; Hdc.value; Hdd.value;
us();
us();
us();
F0000' align="center">
<script>
<!--
function validation(){
var RecSer=document.myform.Rec
var RecHdc=document.myform.Rec
var RecHdd=document.myform.Rec
if(RecSer==""){
alert ("Select the corresponding Server !");
document.myform.RecSer.foc
return false;}
if(RecHdc==""){
alert ("Mentin % free space in the Disk Drive !");
document.myform.RecHdc.foc
return false;}
if(RecHdd==""){
alert ("Mentin % free space in the Disk Drive !");
document.myform.RecHdd.foc
return false;}
return true;
}
// -->
</script>
File No.: 2 (Report.asp)
<% if mrs("Rechde") < 10 then %>
<td width="48" style='background-color:#F
<font color="#000099" face="ms sans serif, arial, verdana" size="1">
<% = mrs("Rechde") %>
</font>
</td>
<% else %>
<td width="48" align="center" >
<font color="#000099" face="ms sans serif, arial, verdana" size="1">
<% = mrs("Rechde") %>
</font>
</td>
<% end if %>