Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/08/2006, 20:14
Avatar de trasgukabi
trasgukabi
 
Fecha de Ingreso: septiembre-2004
Mensajes: 2.749
Antigüedad: 20 años, 8 meses
Puntos: 18
Vamos a probar con algo como esto:
Código:
sql="select * from tabla"
'abrimos el recordset
categoria=rs("categoria")
response.write rs("categoria")
do while not rs.eof
   if categoria=rs("categoria") then
      'sacamos registro
   else
      categoria=rs("categoria")
      response.write rs("categoria")
      'sacamos registro
    end if
rs.movenext
loop