引用子表单 [英] Referencing a Subform
本文介绍了引用子表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
尝试确定正确的语法以引用子表单。这就是我所拥有的,但它不起作用:
Forms![MainForm]![Actions Subform]![Action Date] .SetFocus
Hello,
Trying to nail down the correct syntax to reference a subform. Here is what I have, but it''s not working:
Forms![MainForm]![Actions Subform]![Action Date].SetFocus
推荐答案
试用表格![MainForm]![Subform] .Form![ControlName]
问候,
Scott
Try Forms![MainForm]![Subform].Form![ControlName]
Regards,
Scott
Try Forms![MainForm]![Subform] .Form![ControlName]
此致,
Scott
Try Forms![MainForm]![Subform].Form![ControlName]
Regards,
Scott
这是我的新代码:
表格![MainForm] ![动作子窗体] .Form![动作日期] .SetFocus
运行时,我收到错误,说明Access无法找到字段动作子窗口
我正在尝试将焦点设置到主窗体中包含的子窗体Actions子窗体上的字段Action日期。
Here is my new code:
Forms![MainForm]![Actions Subform].Form![Action Date].SetFocus
When run, I get an error stating Access can not find the field actions subform
I am trying to set focus to the field Action date on the subform Actions subform contained in the Main form.
您能否向我们展示导致此问题的相关代码位一个?
问候,
Scott
Can you show us the relevant bits of code leading up to this one?
Regards,
Scott
这篇关于引用子表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文