简体   繁体   English

MS Access 2007/2003-从父窗体引用子窗体上的控件

[英]MS Access 2007/2003 - Referencing a control on a sub form, from the parent form

So if I want to reference a control (like a text box) on a sub form, from the CBF of the parent form, how should I do this? 因此,如果我想从父窗体的CBF引用子窗体上的控件(如文本框),该怎么办?

me.SubForm.SubControl  

Gives me an error. 给我一个错误。

Me.SubformControlName.Form.SomeControl

Be sure to use the name of the subform control, not the form contained - they are often the same, but not always. 确保使用子窗体控件的名称,而不要使用包含的窗体-它们通常是相同的,但并不总是相同。

More info: http://www.mvps.org/access/forms/frm0031.htm 更多信息: http : //www.mvps.org/access/forms/frm0031.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MS Access 2003/2007-子窗体上的图表对象,父窗体加载时不加载 - MS Access 2003/2007 - Chart Object on a sub form, not loading when parent forms load MS Access 2003/2007-子窗体作为控制面板,用全局引用关闭父窗体吗? - MS Access 2003/2007 - Subform as control panel, closing parent form with global like reference? MS Access =引用子窗体内的控件 - MS Access = referencing a control that is within a sub form MS Access 2007将表单转换为子表单-“找不到表单”问题 - MS Access 2007 Converting forms into sub form - “form not found” issue MS Access 2003-有关文本框的控件源的窗体问题 - MS Access 2003 - Form question about a control source of a text box 无限周期(同时)并启用控件MS Access Form 2003 - Infinite cycle (While) and enable control MS Access Form 2003 连续表格(ms Access 2003) - Continuous Form (ms Access 2003) MS Access 2007-具有表单中文本字符串子地址的超链接 - MS Access 2007 - Hyperlink with a text string sub-address from a form 为什么我的子表单在MS Access 2007的INS​​ERT操作中不包含来自父表单的外键? - Why is my subform not including the Foreign Key from the parent form in the INSERT operation in MS Access 2007? MS Access 2003 使用 SoundEx 从表单中搜索 - MS Access 2003 Using SoundEx to search from a form
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM