Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/05/2011, 17:39
t0n1
 
Fecha de Ingreso: noviembre-2010
Mensajes: 175
Antigüedad: 13 años, 5 meses
Puntos: 1
Concatenar sentencia sql larga

Hola!!! Necesito saber como concantenar esta sentencia que no me entra a lo largo del formulario. Este es el código:

sql = "insert into facturas (numfacPri, numfacSec, fechafac, CodCli, Nombredecliente, Domicilio, Localidad, ConddeVenta, NrodeCUIT, NumRemito, Cant1, Cant2, Cant3, Cant4, Cant5, Cant6, codart1 , codart2, codart3, codart4, codart5, codart6, Importe1, Importe2, Importe3, Importe4, Importe5, Importe6, Total, Subtotal, Pesos) Values (" & lblNumfacPri.Caption & ", " & lblNumfacSec.Caption & ", '" & lblFecha & "', " & CodCli & ", '" & cmbNombre & "', '" & txtDomicilio.Text & "', '" & txtLocalidad.Text & "', '" & txtCond.Text & "', " & txtCuit.Text & ", '" & txtRemito.Text & "', " & txtCant.Text & ", " & txtCant2.Text & ", " & txtCant3.Text & ", " & txtCant4.Text & ", " & txtCant5.Text & ", " & txtCant6.Text & ", '" & codart1 & "', '" & codart2 & "', '" & codart3 & "', '" & codart4 & "', '" & codart5 & "', '" & codart6 & "', " & txtImp.Text & ", " & txtImp2.Text & ", " & txtImp3.Text & ", " & txtImp4.Text & ", " & txtImp5.Text & ", " & txtImp6.Text & ", " & txtTotal.Text & ", " & txtSubtotal.Text & ", " & txtPesos.text & ")"

Cuando termino con la sentencia me aparece el cartel de error: "Se esperaba fín de la instrucción o etiqueta o..."

Saludos!!!

Última edición por t0n1; 16/05/2011 a las 21:52