[英]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.