A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can Subform Call Main Form Sub Procedure



 
 
Thread Tools Display Modes
  #1  
Old October 2nd, 2009, 03:00 AM posted to microsoft.public.access.forms
edisonl via AccessMonster.com
external usenet poster
 
Posts: 68
Default Can Subform Call Main Form Sub Procedure

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

--
Message posted via http://www.accessmonster.com

  #2  
Old October 2nd, 2009, 04:14 AM posted to microsoft.public.access.forms
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Can Subform Call Main Form Sub Procedure

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

"edisonl via AccessMonster.com" u47544@uwe wrote in message
news:9cf7e50091e37@uwe...
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

--
Message posted via http://www.accessmonster.com



  #3  
Old October 2nd, 2009, 01:18 PM posted to microsoft.public.access.forms
edisonl via AccessMonster.com
external usenet poster
 
Posts: 68
Default Can Subform Call Main Form Sub Procedure

Hi Jeanette,

Thanks..

Regards, Edison

Jeanette Cunningham wrote:
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

Hi,

[quoted text clipped - 5 lines]

Regards, Edison


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200910/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.