hola otra vez,
ya he resuelto el problema. de todas formas pongo el codigo por si alguien es lo necesita o si hay alguien q lo haga de otra forma y quiere ponerlo pos eso.
este es mi codigo:
sql="select distinct (nivel1) from tabla ORDER BY nivel1"
set rs=Conn.execute (sql)
%>
<table border="0" cellpadding="0" cellspacing="0">
<%
do while not rs.eof
%>
<tr>
<td><%=rs("nivel1")%></td>
</tr>
<%
sql2="select distinct nivel2 from (select nivel1, nivel2 from tabla where nivel1='"& rs("nivel1")&"')"
set rs2=Conn.execute (sql2)
do while not rs2.eof
if rs2("nivel2")<>rs("nivel1") then
%>
<tr>
<td> <%=rs2("ni vel2")%></td>
</tr>
<%
end if
rs2.movenext
loop
rs.movenext
loop
hasta la proxima!!