How to Referance a subform in code

  • Thread starter mattc66 via AccessMonster.com
  • Start date
M

mattc66 via AccessMonster.com

I need to modify the below syntax to work with SubForms:

I need the same as below - except for .Parent it would be?? I cannot find in
help what i'd expect. I am thinking it would be .child or subform or
something like that...

Set mForm = ctl.Parent

Anyone know the answer?
 
K

Ken Snell \(MVP\)

A bit unusual to do this?

But try this:

Set mForm = Me.NameOfSubformControl.Form

where NameOfSubformControl is the name of the subform control (the control
that holds the subform object).
 
Top