Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/04/2002, 10:53
Avatar de urjose
urjose
 
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 23 años, 4 meses
Puntos: 1
Re: Presentar nº de registros que contiene una bd

Algo así?

<%
Set oConn=Server.CreateObject("ADODB.Connection&q uot;)
oConn.Open "DSN"

SQL="SELECT COUNT(*) AS COUNTER FROM PRODUCTOS GROUP BY FAMILIA"
'SQL="SELECT * FROM PRODUCTOS"
Set RS=oConn.Execute(SQL)

DO WHILE NOT RS.EOF

Response.Write RS("Counter")&"<BR>"

RS.Movenext
Loop

oConn.Close
Set oConn=Nothing
Set Rs=Nothing
%>

<center><img src="http://www.pcmasmas.com.ar/foro/images/avatars/043.gif"><br>
Urjose</center>