Visual Basic - El operador '&' no está definido para cadena "Insert into

Life is soft - evento anual de software empresarial
 
Vista:
Imágen de perfil de HELDER

El operador '&' no está definido para cadena "Insert into

Publicado por HELDER (3 intervenciones) el 11/04/2013 23:16:27
HOLA AMIGOs, COMO ANDAS EN VB 2010

QUIERO ALMACENAR UN REGISTRO EN UNA TABLA A TRAVES DE UNA INSTRUCCION INSERT INTO
PERO ME LANZA ESTE ERROR, POR MAS QUE INTENTO, PERO NO LOGRO ENCONTRAR EL PROBLEMA
El operador '&' no está definido para cadena "Insert into tblInventario(fecha," ni para tipo 'DataRowView'.

ESTE ES EL SQL

Dim sqlSave As String = "Insert into tblInventario(fecha, cod_art, articulo, precio_art, categoria, unidad, proveedor, detalle, cantidad, existencia, total, tipo, id_usuario) values('" & Convert.ToDateTime(txtFecha.Text) & "', '" & txtCod_articulo.Text & "','" & cboArticulos.SelectedValue & "', '" & Convert.ToDecimal(txtPrecio_art.Text) & "', '" & txtCategoria.Text & "', '" & txtUnidad.Text & "', '" & txtProveedor.Text & "', '" & txtDetalle.Text & "', '" & nudCantidad.Value & "', '" & txtExistencia.Text & "', '" & txtTotal.Text & "', '" & v_tipo & "', '" & txtIdentidad2.Text & "')"

SI ME AYUDAS, TE AGRADECERE.



Helder B. Martínez Peña.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder