Subform Call From MainForm

F

Firman

I would like to use SubRoutine in the MainForm from
SubForm, but I have problem how to do it.
I have tried a simple coding:
Forms!MainForm.Form.MainRoutine
But it rejected by message:
Application-defined or Object-defined error.
Would you help me please?
Thank you.
 
A

Albert D. Kallal

For a function, use


me.Parent.TheFunction

For a sub, try:

Call me.Parent.TheSubName
 
Top