Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/05/2002, 10:57
gramirez
 
Fecha de Ingreso: mayo-2002
Mensajes: 10
Antigüedad: 23 años
Puntos: 0
Re: Recorrer varios campos

según lo que entiendo tendrias.

strsql = "select campo1, campo2,..., campo20
from tabla
where condicion"

set rs = cn.execute(strsql)
if not(rs.eof and rs.bof) then
var_campos = rs.getrows(rs.recordcound)
'HE CREADO UNA MATRIZ QUE CONTENGA EL RESULTADO DEL SELECT
for i = 0 to ubound(var_campos)
if var_campos(i,FILA DESEADA) = TU_VARIABLE then
tus sentencias
end if
next
end if

Si hablamos de que el select te devuelve un solo registro FILA_DESEADA seria = 0 pero si tiene varias filas entonces tendrias que barrerte la matriz (var_campos) con un for anidado al primero.

Espero te sirva.