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.
 
Top