Tienes razón, no están las dobles comillas porque hice la prueba y las volví a quitar porque no cambiaba nada.
Pues el caso es que pruebas_buzo.asp es la misma página del select, las tenía separadas pero al ver el problema lo dejé así para resolverlo de manera más sencilla.
Si quieres te posteo el resto del formulario...
Código:
<form NAME="formulario">
<p ALIGN="left"><font SIZE="1" COLOR="#004250"><b><u> Datos del buceador:</u></b></font><br>
<br>
<span CLASS="Estilo1"><font SIZE="1"> </font><span CLASS="Estilo13" STYLE="font-weight: bold; font-size: 10px">Nombre:</span></span>
<select name=idBuzo SIZE="1" CLASS="fc_dateHover"
onChange="location.href('pruebas_buzos.asp?idBuzo=' + formulario.idBuzo.options[formulario.idBuzo.selectedIndex].value)">
<%
Set Conn = Server.CreateObject("ADODB.Connection")
espacios = Trim(Replace(Request.Form("Nombre"), "'", "''"))
Conn.Open = MM_cnx_salidas_STRING
SQL_socio="SELECT Nombre, idBuzo FROM Socios ORDER BY Nombre ASC"
set RS_socio=createobject("ADODB.Recordset")
RS_socio.open SQL_socio,conn
do while not RS_socio.eof
Nombre = RS_socio("Nombre")
idBuzo = RS_socio("idBuzo")
p = request.querystring("Nombre")
if p <> "" then
if p = Nombre then
response.write "<option value=""&idBuzo&"" selected>"&Nombre&"</option>"
elseif p <> Nombre then
response.write "<option value="&idBuzo&">"&Nombre&"</option>"
end if
else
response.write "<option value="&idBuzo&">"&Nombre&"</option>"
end if
RS_socio.movenext
loop
RS_socio.close
Set RS_socio = Nothing
%>
</select>
<%
if request.querystring("idBuzo") <> "" then %>
</span>
<p> <font SIZE="1" COLOR="#004250"><b>Nº Socio:
<%
SQL_dat="select socio, DNI, TIT from Socios where idBuzo="&request.querystring("idBuzo")&" order by socio asc"
set RS_dat=createobject("ADODB.Recordset")
RS_dat.open SQL_dat,conn
do while not RS_dat.eof
idBuzo = request.querystring("idBuzo")
socio = RS_dat("socio")
DNI = RS_dat("DNI")
TIT = RS_dat("TIT")
%>
<input NAME="socio" TYPE="text" CLASS="fc_dateHover" VALUE="<%=socio%>" SIZE="8" READONLY="true" />
DNI:
<input NAME="DNI" TYPE="text" CLASS="fc_dateHover" VALUE="<%=DNI%>" SIZE="13" READONLY="true" />
Titulación: </b></font>
<input NAME="TIT" TYPE="text" CLASS="fc_dateHover" VALUE="<%=TIT%>" SIZE="25" READONLY="true" />
<%
RS_dat.movenext
loop
RS_dat.close
Set RS_dat = Nothing
%>
</select>
<% end if %>
</form>