codice:
<% Set rec = Server.CreateObject("ADODB.Recordset")
strSql=("SELECT * FROM preventivi WHERE idutente="& session("idutente"))
rec.open strsql, conn
id_ogg=rec("id_ogg")
if not rec.eof then
do While Not rec.EOF
%>
<% Set rs = Server.CreateObject("ADODB.Recordset")
strSql1=("SELECT * FROM search WHERE id_ogg="& id_ogg &" ")
rs.open strsql1, conn
if not rs.eof then
do While Not rs.EOF
dispreale=rs("dispreale")
%>
<%if dispreale<=0 then
ifont="FF0000"
end if
if dispreale>0 then
ifont="008000"
end if%>
mostro dispreale e altri record...
<%rs("dispreale")%>
<%rs.movenext
loop
end if
%>
<% rec.movenext
loop
end if
%>
</form>
</td>
</tr>
</table>
</center>
</div>
<%end if%>
così?
l'errore sul loop non l'avevo notato e l'ho copiato da willy