RecordCount?

20/07/2004 - 18:29 por Omar Valdovino | Informe spam
A alguien le funciona el RecordCount?
 

Leer las respuestas

#1 Franco Figún
20/07/2004 - 18:45 | Informe spam
Aca tenes 2 variantes para el conteo de registros:

<%
If rs.EOF = FALSE then
total = 0
while not rs.EOF
total = total + 1
rs.MoveNext
wend
rs.MoveFirst
End If
%>

<%
if total = 0 then
response.write "No hay registros"
else
Response.Write "Cantidad de registros:" & total & ""
end if
%>
==if (rs.count > 0) then
response.Redirect "resultados"
else
strsql1 = "SELECT * FROM tbl"
Set rs1 = Server.CreateObject("ADODB.Recordset")
rs1.Open strsql1, conn, 1, 2
Do While NOT rs1.EOF
rs1.Delete
rs1.MoveNext
Loop
rs1.Close
Set rs1 = Nothing
end if

FF
www.francofigun.com.ar
MSN:
Yahoo MSN:
"Omar Valdovino" wrote in message
news:#
A alguien le funciona el RecordCount?


Preguntas similares