【发布时间】:2018-06-01 02:06:03
【问题描述】:
CurrentDb.Execute "UPDATE Transaction SET receipt_id=" & txtreceipt_id & ", tdate=" & txttdate & ",total_cost=" & txttotal_cost & ",total_disc=" & txttotal_disc & " WHERE receipt_id=" & txtreceipt_id & " "
我收到运行时 3144 语法错误。似乎找不到错误。
【问题讨论】:
-
你能显示完整的语法错误吗?
-
您需要一些额外的报价吗?开始使用 CurrentDb.Execute "UPDATE Transaction SET receipt_id=" & txtreceipt_id 并将其他字段一一添加。
标签: sql ms-access vba ms-access-2010 ms-access-2013