急!!标准表达式中数据类型不匹配?!但是没发现什么问题啊?
急!!标准表达式中数据类型不匹配?!但是没发现什么问题啊?
。。。。。。
jmgConn.Open();
InsertData = "insert into Sell(" + "[Number]" + "," + " [Date] " + "," + " Consignee " + "," + " Goods " + "," + " GoodsNumber " + "," + " Unit " + "," + " Quantity " + "," + " [Sum] " + "," + " Profit " + "," + " [Note] " + ") Values"
+ "('" + txtNumber.Value + "','" + txtDate.Value + "','" + txtConsignee.Value + "','" + txtGoods.Value + "','" + txtGoodsNumber.Value + "','" + txtUnit.Value + "','" + txtQuantity.Value + "','" + txtSum.Value + "','" + txtProfit.Value + "','" + txtNote.Value + "')";
jmgComm = new OleDbCommand(InsertData, jmgConn);
jmgComm.ExecuteNonQuery();
jmgConn.Close();
。。。。。。