Código:
cuando le quito los campor user, nlin ejecuto si guarda pero cuando los coloco esos dos campos me manda el error, los campos son numericos.mostrar("SELECT * FROM TIPOSMOV where codtip = " & ddlConcepto.SelectedValue) StrGrabar = "" StrGrabar = "INSERT INTO MTRMOVOT(MCODTRAN,PUESTO,mfechop,mnumdoc,mplazo,mtop,mch_tel,mctac,MDESCR,MDETALLE,mtopet,monto,montoi,m_tmo,MCODCTA,NLIN,USER) VALUES(" StrGrabar = StrGrabar & Trim(txtTransac.Text) & "," StrGrabar = StrGrabar & Trim(txtNroPuesto.Text) & ",'" StrGrabar = StrGrabar & Trim(txtFecha.Text) & "','" StrGrabar = StrGrabar & Trim(txtNroDoc.Text) & "'," StrGrabar = StrGrabar & "0," StrGrabar = StrGrabar & "3,'" StrGrabar = StrGrabar & Trim(datos.Tables("x").Rows(0).Item("detabr").ToString) & "','" StrGrabar = StrGrabar & Trim(datos.Tables("x").Rows(0).Item("CCONTAB").ToString) & "','" StrGrabar = StrGrabar & Trim(txtDescrip.Text) & "','" StrGrabar = StrGrabar & Trim(txtDetalle.Text) & "'," StrGrabar = StrGrabar & Mid(ddlTipoMov.SelectedItem, 1, 1) & "," StrGrabar = StrGrabar & Trim(txtTotal.Text) & "," StrGrabar = StrGrabar & "0," StrGrabar = StrGrabar & "0," StrGrabar = StrGrabar & Trim(datos.Tables("x").Rows(0).Item("codtip").ToString) & "," StrGrabar = StrGrabar & "1," StrGrabar = StrGrabar & "1)" Console.Write(StrGrabar) ejecutar(StrGrabar)
la excepcion que me manda es:
Excepción del tipo 'System.Data.OleDb.OleDbException' en System.Data.dll
espero su ayuda gracias