开发者

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

开发者 https://www.devze.com 2023-01-05 05:46 出处:网络
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?

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?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消