View Full Version : Solved: Raise event in a subfrom
kunguito
11-07-2008, 05:36 AM
How do I raise an event of a subform's control (it's a textbox) from a parent form?
Form A contains SubForm B
SubForm B contains textbox T
How do I raise a T event from A?
Thanks!
FrymanTCU
11-07-2008, 10:07 AM
me.Name_subform.form.Control has worked for me before. That was part of a command button but hope it helps.
kunguito
11-14-2008, 03:32 AM
Hi FryManTCU,
I don't want to have access to the control. I want to raise a control's event.
Thanks
Jaculek
11-18-2008, 01:53 AM
It will help you:
h**p://accessblog.net/2006/05/usercontrols-subforms-and-events.htm
DarkSprout
11-21-2008, 09:00 AM
This will call the Sub 'DoSearch' on the Parent Form | Ensure that 'DoSearch' is a Public Sub
Call Forms("frm_FormName").DoSearch
... And for a Sub/Child Form:
Form_frm_FormName![subfrm_ChildForm].Form.DoSearch
'// Note: Form_ is not part of the forms name, but another way to reference the form object instead of Forms(...)
These should work, but these examples where cold coded.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.