
 laika 
el segundo while, lo ustilizas solo para sacar cuantos son verdad?
 Cita:  sql2="SELECT id_libro FROM articulos where id_libro=" & rs("id_libro")
    por que no usas el COUNT
 Cita:  sql2="SELECT count(id_libro) as contador FROM articulos where id_libro=" & rs("id_libro")
    asi te evitarias hacer el while  

suerte