刷新表单后获取textbox的值
我有一个连续的表单,它具有包含一些字段的属性。 当我单击表单上的按钮时,会在表单上处理重新查询,这会导致某些文本框的值更新(这些文本框未启用,即只读)。
我想做的是在重新查询后获取表单中文本框之一的值。 我该怎么做? 我尝试使用 Current 事件来获取重新查询(刷新)后的值,但它不起作用。还有其他事件可以完成这项工作吗?
I have a continuous form that has the property that has some fields.
When I click a button on the form a Requery is processed on the form which results in updated value of some textboxes (these are not enabled, i.e. read only).
What I'm trying to do is to get the value of one of the textboxes in the form after Requery.
How do I do that?
I've tried using the Current event to get the value after the requery (refresh) but it's not working. Is there any other event that can do the work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需使用字段的名称即可。例如,重新查询后,使用
msgbox [FieldName]
。Just use the name of the field. For example, after the requery, use
msgbox [FieldName]
.感谢您的贡献..
问题是我试图获取的字段值来自添加 2 个值 (a + b)
,因此解决方案是在将其值保存到不同变量之前更新该字段...
Thanks for your contribution..
The problem was that the value of the field I was trying to get the value of comes from adding 2 values (a + b)
and so the solution was updating the field before saving its value to a different variable...