Call Event from Subform

P

PeterM

I've figured out how to execute a sub on a subform initiated on the form.

[Forms]![Contacts]![ContactsAddresses].Form.btnSave_Click

I can't for the life of me figure out how to do the opposite. To execute a
sub on the form called from the subform. When I do a search it always talks
about controls, not subroutines.

Can someone please help!
 
T

Tom van Stiphout

On Wed, 10 Feb 2010 17:50:01 -0800, PeterM

Me.Parent.myPublicProcedure
Note that the procedure must be public. Click events are Private by
default, but you can simply change that.

-Tom.
Microsoft Access MVP
 

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