Call routine on subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to call a sub routine on a subform from a main form. How would I code
that? Thanks!
 
smk23 said:
I need to call a sub routine on a subform from a main form. How would
I code that? Thanks!

The procedure on the subform must be defined as Public. If it is, you
can use syntax like this to call it:

Call Me!SubformControlName.Form.YourSubName

or just

Me!SubformControlName.Form.YourSubName

That's assuming that the procedure doesn't require any parameters.
 
Back
Top