ok listo. ya lo resolvi....
pero como hago para que los totales me los ordene descnentemente??
gracias.
lo hice asi:
Código:
sSQL = "select top 5 count(idtema) as totales from tblcomments where idmain<>0 and idmain in(select codigo from foromain where privado=true and activar=true) group by idtema order by totales"