
El operador '&' no está definido para cadena
Publicado por Helder (4 intervenciones) el 12/04/2013 05:55:37
HOLA AMIGO, 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
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
Valora esta pregunta


0