How do you call subform subroutines from main form?

L

Lawrence Mak

As titled.
I want to be able to call subroutines that reside in a subform from a main
form. Any help appreciated.

Lawrence Mak
 
B

Brian

Lawrence Mak said:
As titled.
I want to be able to call subroutines that reside in a subform from a main
form. Any help appreciated.

Lawrence Mak

Assuming the subform control is called subMySubform (that's the subform
CONTROL, the name of the form itself is irrelevant), and the procedure you
want to call is named MySubProc, then:

Me.subMySubform.Form.MySubProc
 
L

Lawrence Mak

Thanks!

Brian said:
Assuming the subform control is called subMySubform (that's the subform
CONTROL, the name of the form itself is irrelevant), and the procedure you
want to call is named MySubProc, then:

Me.subMySubform.Form.MySubProc
 
Top