Call subform event procedure from main form event procedure ?

G

Guest

I want to call the subform's Form_AfterUpdate event procedure in the main
form's OnCurrent event procedure. Problem is Form_AfterUpdate is not visible
because it is private to the subform. When I declare it public there is no
change. Is there a simple answer ?
 
K

kingston via AccessMonster.com

Just change the word Private to Public in the subform's code. Open the
subform by itself, edit the code, and save the form. What do you mean when
you declare it public there is no change? Does the code automatically change
back to Private? To call the subform's procedure from the main form:

Me.SubForm.Form.Procedure
 
G

Guest

Hmm.

I tried the code you suggested earlier and it wouldn't compile.

I tried it just now and it compiled fine and ran.
Must have had a brain fart.

Thanx
 

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