Ver Mensaje Individual
  #4 (permalink)  
Antiguo 11/09/2002, 10:27
Avatar de AlZuwaga
AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 24 años, 2 meses
Puntos: 535
Re: recoger un valor en diferentes variables

Fijate de adaptar esto a tus necesidades:

Código:
<%
queIDStr = "200,201,202"
queIDStr = Split(queIDStr, ",")

strSQL = "SELECT * FROM tblPolls WHERE "

For i = 0 To UBound(queIDStr)
	If i <> UBound(queIDStr) then
	strSQL = strSQL & " id_no = " & queIDStr(i) & " or "
	Else
	strSQL = strSQL & " id_no = " & queIDStr(i)
	End if
Next

Response.Write strSQL
%>

Claro que tendrías que cambiar la línea..
Código:
queIDStr = "200,201,202"
por..
Código:
queIDStr = trim(request.form("id_no"))
Lo hice así para probarlo antes de enviarte el código