salve alla lettura di un database ho un ciclo do while / loop che funziona correttamente ed è questo :
codice:
 Do while not  Rsc.EOF 
  %>         <h2 align="center"><textarea  class="Format" rows="6" cols="25"><%= strg & " -     " & Rsc("descrizione") %> </textarea></h2>        
 <% 	    
Rsc.MoveNext     
Loop
io però vorrei che quando la ricerca non trova nulla nel database mi avvisasse per questo avevo scritto questo codice :
codice:
if Do while not  Rsc.EOF then 
 %>         <h2 align="center"><textarea  class="Format" rows="6" cols="25"><%= strg & " -     " & Rsc("descrizione") %> </textarea></h2>         
<% 	   
 Rsc.MoveNext    
 Loop			 	
else 	
%>        <h2 align="center"><textarea  class="Format" rows="6" cols="25"><%= strg & " -      Nessun evento trovato" %> </textarea></h2>            
<% 	
end if
ma non funziona, potete aiutarmi

saluti Roberto