Executing procedure in a sub form

J

JC Benner

I want to execute a public procedure in a subform from the
main form. I assume this can be done but I cannot find an
example in any of my Access books.
 
M

Marshall Barton

JC said:
I want to execute a public procedure in a subform from the
main form. I assume this can be done but I cannot find an
example in any of my Access books.


Public procedures in a form (or class or report) module are
methods of the object. This means you can refer to your
subform procedure using this syntax:

Me.subformcontrol.Form.procedurename

with any argments specified in the usual way.
 

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