Dunque il problema del ciclo è risolto, ma perchè questa condizione non funziona, potete spiegarmi?: Grazie
codice:
Set rs = Server.CreateObject("ADODB.Recordset")
SQL = "SELECT * FROM BlocNum WHERE id = "&id&" and Invio IS NULL"
rs.Open SQL, Open, 3, 3
If rs.Eof then
response.write "negativo"
Else
SQL = "SELECT * FROM Interr"
Set rec = myConn.Execute(SQL)
Do while Not rec.Eof
IF rec("cvalore") < rs("bvalore") or rec("avalore") < rs("dvalore") then
response.write "ok
"
SQL = "INSERT Ins (data, cvalore, giustificazione) VALUES (#"& data &"#, '"& REC("cvalore") &"', 'assente')"
set rs2 = myConn.execute(sql)
ELSE
response.write "ko
"
SQLD = "SELECT * FROM BlocNum WHERE id="&id
Set rs3 = myConn.Execute(SQLD)
IF rs3("fvalore") < 0.1 AND rs3("fvalore") < 0.2 then
SQL = "INSERT INTO Ins (data, fvalore, giustificazione) VALUES (#"& data &"#, '"& rs3("fvalore") &"', 'presente')"
set rs4 = MyConn.execute(sql)
end if
END IF
la condizione in rosso non viene mai presa in considerazione...