Referring to a procedure on a sub-form

  • Thread starter Thread starter JimP
  • Start date Start date
J

JimP

A "ParentForm" has 2 sub-forms - "SubFormA" and "SubFormB". How do I call a
procedure on "SubFormB" from "SubFormA"?
 
A "ParentForm" has 2 sub-forms - "SubFormA" and "SubFormB". How do I call a
procedure on "SubFormB" from "SubFormA"?

Generally, if you find that you must use a sub or function from several different places you'd be better off moving it
to a Standard Module and calling it from there. However:

Me.Parent.NameOfSubformBCONTROL.Form.NameOfYourProcedure

Make sure that you use the name of the Subform Control, it's not necessarily the name of the form being used as a
subform.

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 
Back
Top