以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  语句执行错误  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=135314)

--  作者:511811648
--  发布时间:2019/5/23 14:17:00
--  语句执行错误


Tables("白条检斤_t4").Fill("UPDATE {生产} EST 重量2 =\'" & Tables("上传").Current("净重") & "\'where 已屠宰2 = 1 and 顺序号1 =" &  Tables("参数")Current("胴体号") & "\'","123",True)

请问老师:上述代码在 Tables("上传").Current("净重") 数值大于100时,提示语句错误,这是为什么?

--  作者:有点甜
--  发布时间:2019/5/23 15:19:00
--  

执行update语句,请使用sqlcommand

 

http://www.foxtable.com/webhelp/scr/0696.htm

 

[此贴子已经被作者于2019/5/23 15:18:55编辑过]