%>
<FORM ACTION="Pro4.asp" METHOD=POST>
IDConducente:
<SELECT name="cazzo" SIZE="1">
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("Progetto.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
RS.open "Percorsi", conn
SQL ="SELECT distinct IDConducente FROM Percorsi Where Settore='"& cc &"' AND IDConducente = "& ss &" "

Set rs = conn.Execute(SQL)

x=0

dim gians()

DO WHILE NOT rs.EOF
y=x
redim preserve gians(x)

gians(x) = trim(rs("IDConducente"))

x=x+1

rs.MoveNext
LOOP
RS.Close
Set SQLstmt = nothing
for i=0 to y
%>
<OPTION VALUE="<%=gians(i)%>"><%=gians(i)%></OPTION>


<%next %>
</SELECT>
</FORM>

mi da l'errore Indice non incluso nell'intervallo e il bello e che nella pagiana precedente c'è lo stesso codice e funziona ma! se qualcuno mi aiuta grazie