<%
else

do While Not rec.EOF
....
rec.MoveNext
loop
end if

rec.close
set rec = nothing

Conn.Close
set Conn = Nothing
%>

non dovrebbe cambiar nulla..pero' ... se ci fai vedere anche cosa c'è dentro al ciclo non sarebbe male