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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top