本文介绍了更改文本框的控件源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 我在表单上有很多按钮,我希望每个按钮打开相同的表单但是更改表单上文本框的控件来源所以我可以使用它来更新多个字段,而不必创建一堆表单来做同样的事情。所有正在更新的字段都在同一个表中,更新表单的控制源是基于该表的选择查询。 我当前的代码是这样的: />
Hi All, I have many buttons on a form, i want each of these buttons to open the same form but change the control source of the textbox on the form so i can use it to update multiple fields and not have to create a bunch of forms to do the same thing. All of the fields being updated are on the same table, the control source of the update form is a select query which is based on that table. my current code is this:
展开 | 选择 | Wrap | 行号 推荐答案试试这个: Try this: 展开 | 选择 | Wrap | 行号
感谢您的回复! 当我排除引号和双等于你上面时我得到一个错误: 运行时错误''13'':类型不匹配 谢谢。 Thanks for the response! When I exclude the quotes and double equals like you have above I get a error: Run-time error ''13'': Type mismatch Thanks.
Opps - 我的错误。 Opps - my mistake. 展开 | 选择 | Wrap | 行号
更多推荐
更改文本框的控件源
发布评论