
21/11/2008, 13:08
|
 | | | Fecha de Ingreso: mayo-2008 Ubicación: Monterrey, Nuevo Leon, Mexico
Mensajes: 48
Antigüedad: 17 años Puntos: 4 | |
Respuesta: Sumar registros en ASP hola juanpastor es muy facil:
sQuery ="SELECT (DISTINCT "IDCampo") as IDCampo FROM "tu Tabla" "
Set oRs = oConn.execute(sQuery)
WHILE NO oRs.EOF
sQuery2 ="SELECT (Count "Campo") as CatidadRegistros FROM "tu Tabla" WHERE IDCAMPO = "&oRs("IDCAMPO")&""
Set oRs2 = oConn.execute(sQuery2)
Response.write "El "&oRs("IDCampo ")&" Tiene "&oRs2("CatidadRegistros ")&"registros"
oRs.MoveNext
WEND
espero te sirva
Saludos
__________________ SIEIT.NET |