MS访问中命令按钮的表达式构建器
我是MS Access的新手,想使用表格的按钮。我想了解一个要点,
表格中有一个按钮
我有一个文本框搜索,并且我不想使用VBA的
,并且在Expression Builder的帮助下,我可以在单击按钮后清除文本框中的文本吗?我已经尝试过,但没有解决。是正确的方式吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用Expression Builder,您只能调用用户功能,宏或VBA例程。
尝试使用VBA代码:
me 是您的形式。
ControlName 是您的字段名称(在我的 txt_somefield “)
单击按钮,事件,onclick并放置此代码(请记住要替换字段的名称)。
With expression builder you can only call a user function, macro or vba routine.
Try with vba code:
Me is your form.
controlName is the name of your field (in my Screenshot is "txt_somefield")
Click on button, Event, Onclick and put this code (remember to replace your field's name).
不知道为什么要使用表达式构建器。一个简单的宏将可以解决问题。
选择
属性
命令按钮的 everts 选择...
在上,单击
,然后宏Builder
添加操作,选择您的文本框控件名称,选择
设置属性
,然后value
- 并留下空白保存和出口跑步
Not sure why you want to use Expression Builder. A simple macro will do the trick.
Select
Properties
of Command Button, underEvents
choose...
next toOn Click
and thenMacro Builder
Add Action, choose your TextBox control name, select
Set Property
, thenValue
- and leave Value blankSave and Exit and Run