北京 | 上海 | 天津 | 重庆 | 广州 | 深圳 | 珠海 | 汕头 | 佛山 | 中山 | 东莞 | 南京 | 苏州 | 无锡 | 常州 | 南通 | 扬州 | 徐州 | 杭州 | 温州 | 宁波 | 台州 | 福州 | 厦门 | 泉州 | 龙岩 | 合肥 | 芜湖 | 成都 | 遂宁 | 长沙 | 株洲 | 湘潭 | 武汉 | 南昌 | 济南 | 青岛 | 烟台 | 潍坊 | 淄博 | 济宁 | 太原 | 郑州 | 石家庄 | 保定 | 唐山 | 西安 | 大连 | 沈阳 | 长春 | 昆明 | 兰州 | 哈尔滨 | 佳木斯 | 南宁 | 桂林 | 海口 | 贵阳 | 西宁 | 乌鲁木齐 | 包头 |
private void btnPrint_Click(object sender, EventArgs e)
{
using (OleDbConnection con = new OleDbConnection(AccHelper.ConnectionString))
{
string sqlInsert = "insert into kehu(kehu_Money,kehu_Upmoney) values ("+ Convert.ToDouble(this.lbMoney.Text) +",'" + this.lbUpper.Text +"') where kehu_fax_No = '"+ this.txtInvoice.Text +"'";
con.Open();
OleDbCommand com = new OleDbCommand(sqlInsert,con);
int count = com.ExecuteNonQuery();
if (count > 0)
{
PrintInvoice pro = new PrintInvoice(this.txtInvoice.Text);
pro.Show();
}
}
}
里面这个Access语句有错误 提示缺少sql结束符“;”,谁能看一下是什么错误吗?