Grazie alla ricerca ho personalizzato questo code:
codice:
sql = "select ID, nome, cognome from tabella GROUP BY cognome, ID, nome"
set rs = conn.execute(sql)
if not rs.eof then
%>
<select name="nome" id="nome" onChange="jumpMenu('parent',this,0)">
<option value="<%=pagina%>?id="></option>
<% do until rs.eof %>
<option value="<%=pagina%>?id=<%=rs("ID")%>"<% if rs("ID") = id then %> selected<% end if %>><%=rs("cognome")%></option>
<%
rs.movenext
loop
end if
%>
</select>
<%
rs.close
set rs = nothing
if id > 0 then
sql = "select nome, ID from tabella where ID = " & ID & " group by nome, ID"
set rs = conn.execute(sql)
if not rs.eof then
%>
<select name="cp" id="cp">
<option value="<%=rs("ID")%>"></option>
<% do until rs.eof %>
<option value="<%=rs("ID")%>"><%=rs("nome")%></option>
ma funziona male perchè non raggruppa i cognomi...