Foros del Web » Programando para Internet » ASP Clásico »

Comparacion De Datos

Estas en el tema de Comparacion De Datos en el foro de ASP Clásico en Foros del Web. SALUDOS, TENGO UN PROBLEMA A LA HORA DE HACER UNA CONSULTA..POR EJEMPLO FOR I=1 TO 10 CONSULSQL= "SELECT CLAVE FROM TBLCLAVENUMERO WHERE NUMERO='"& I &"'" ...
  #1 (permalink)  
Antiguo 25/06/2002, 12:24
Avatar de vlah  
Fecha de Ingreso: enero-2002
Mensajes: 254
Antigüedad: 22 años, 5 meses
Puntos: 0
Comparacion De Datos

SALUDOS, TENGO UN PROBLEMA A LA HORA DE HACER UNA CONSULTA..POR EJEMPLO

FOR I=1 TO 10

CONSULSQL= "SELECT CLAVE FROM TBLCLAVENUMERO WHERE NUMERO='"& I &"'"
NEXT
NUMERO ES DE TIPO NUMERO.."LA BASE ES EN ACCESS"

ESTE ES UN EJEMPLO... Y ME SALE EL ERROR QUE LOS TIPOS NO COINCIDEN..

ALGUIEN PUEDE DECIRME PORQUE..?
  #2 (permalink)  
Antiguo 25/06/2002, 12:27
 
Fecha de Ingreso: febrero-2002
Mensajes: 80
Antigüedad: 22 años, 3 meses
Puntos: 0
Re: Comparacion De Datos

"SELECT CLAVE FROM TBLCLAVENUMERO WHERE NUMERO="+Cstr(I)
  #3 (permalink)  
Antiguo 25/06/2002, 13:31
Avatar de bakanzipp  
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 22 años, 7 meses
Puntos: 0
Re: Comparacion De Datos

si es de tipo numerico tienes que quitarle la comilla simple al I

Código:
  
CONSULSQL= "SELECT CLAVE FROM TBLCLAVENUMERO WHERE NUMERO="& I &" "
  #4 (permalink)  
Antiguo 26/06/2002, 19:51
Avatar de vlah  
Fecha de Ingreso: enero-2002
Mensajes: 254
Antigüedad: 22 años, 5 meses
Puntos: 0
Re: Comparacion De Datos

Gracias lo voy a checar..
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta

SíEste tema le ha gustado a 1 personas (incluyéndote)




La zona horaria es GMT -6. Ahora son las 21:13.