【发布时间】:2016-10-03 15:33:04
【问题描述】:
我正在尝试获取访问用户表单按钮来运行更新查询。 我的参数是:
Invoice number (should update Current ICB.Invoice number)
Material Code (should update Current ICB.Material Code)
Amount USD (Should update current ICB.Amount USD)
Username (Should update current ICB.Owner)
Vendor Code (Should update current ICB.Vendor code)
Record Number (Should = current ICB.ID)
我想使用表单上的按钮来检查具有相同记录号的记录,并使用输入到用户表单中的值更新上面列出的字段。我会使用更新查询,但将 SQL 写入 VBA 并不是我的强项。有什么想法吗?
【问题讨论】:
-
您有任何代码要发布吗?另外,您不需要在 VBA 中执行此操作,您可以对其进行查询。
-
试试
Refresh。如果没有帮助,请尝试Requery。 -
您说的是 Access 表单,还是无法绑定到数据源的办公室“用户”表单?