Can Subform Call Main Form Sub Procedure

  • Thread starter edisonl via AccessMonster.com
  • Start date
E

edisonl via AccessMonster.com

Hi,

1. I have a Main form where consists of mutliple subform.

2. In code editor of subform A, am i able to call local sub procedure that
resides in
main_form ?

Regards, Edison
 
J

Jeanette Cunningham

Hi edisonl,
Yes this is possible.
Make the sub procedure on the Main form a public sub -- Public Sub
SubName()

In subformA your code goes like this-->
Me.Parent.SubName

or you can use

Call Me.Parent.SubName

Note: replace SubName with the actual name of the sub procedure.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
E

edisonl via AccessMonster.com

Hi Jeanette,

Thanks..

Regards, Edison

Jeanette said:
Hi edisonl,
Yes this is possible.
Make the sub procedure on the Main form a public sub -- Public Sub
SubName()

In subformA your code goes like this-->
Me.Parent.SubName

or you can use

Call Me.Parent.SubName

Note: replace SubName with the actual name of the sub procedure.

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
[quoted text clipped - 5 lines]
Regards, Edison
 

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