Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/12/2011, 10:29
Avatar de gnzsoloyo
gnzsoloyo
Moderador criollo
 
Fecha de Ingreso: noviembre-2007
Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 16 años, 5 meses
Puntos: 2658
Respuesta: Consulta de EXECUTE

Pues, si tiene demasiadas continuaciones de línea... quitale algunas:
Código vb:
Ver original
  1. cnn.Execute "UPDATE Coches set Matricula = '" & Text1(1) & "', Marca = '" & CmbMarca.ListIndex & "', Modelo = '" & Text1(2) & _
  2. "', TipoVehiculo = '" & CmbVehiculo.ListIndex & "', FechaMatriculacion = '" & Text1(3) & _
  3. "', Garantia = '" & Text1(4) & "', Kilometros = '" & Text1(5) & "', NBastidor = '" & Text1(6) & _
  4. "', Color = '" & Text1(7) & "', Origen = '" & CmbOrigen.ListIndex & "', Combustible = '" & CmbCombustible.ListIndex & _
  5. "', Cilindrada = '" & Text1(8) & "', Potencia = '" & Text1(9) & "', Puertas = '" & Text1(10) & _
  6. "', Ciudad = '" & Text1(11) & "', Carretera = '" & Text1(12) & "', Mixto = '" & Text1(13) & _
  7. "', Mixto = '" & Text1(13) & "', Mixto = '" & Text1(13) & "', Mixto = '" & Text1(13) & _
  8. "', Mixto = '" & Text1(13) & "', Mixto = '" & Text1(13) & "', Mixto = '" & Text1(13) & _
  9. "', Mixto = '" & Text1(13) & "', Mixto = '" & Text1(13) & "' WHERE Id = " & IdRegistro & ""
__________________
¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente...
"El problema es la interfase silla-teclado." (Gillermo Luque)