Subform Call From MainForm

  • Thread starter Thread starter Firman
  • Start date Start date
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.
 
For a function, use


me.Parent.TheFunction

For a sub, try:

Call me.Parent.TheSubName
 
Back
Top