更改文本框的控件源

编程入门 行业动态 更新时间:2024-10-24 18:22:54
本文介绍了更改文本框的控件源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我在表单上有很多按钮,我希望每个按钮打开相同的表单但是更改表单上文本框的控件来源所以我可以使用它来更新多个字段,而不必创建一堆表单来做同样的事情。所有正在更新的字段都在同一个表中,更新表单的控制源是基于该表的选择查询。 我当前的代码是这样的: />

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 | 行号

更多推荐

更改文本框的控件源

本文发布于:2023-11-03 16:07:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1555528.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   文本框

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!