
El operador '&' no está definido para cadena "Insert into
Publicado por HELDER (3 intervenciones) el 11/04/2013 23:19:34
HOLA AMIGOS, COMO ANDAS EN VB 2010
QUIERO ALMACENAR UN REGISTRO EN UNA TABLA DE ACCESS 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.
Tec. Informática.
Cel. 9728-1183
8906-7014
www.auladigital.6te.net
QUIERO ALMACENAR UN REGISTRO EN UNA TABLA DE ACCESS 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.
Tec. Informática.
Cel. 9728-1183
8906-7014
www.auladigital.6te.net
Valora esta pregunta


0