This was written by someone else, I just need to get it working in Access 2013.
The name of the subform is frmMember, so I guess Subform0 is what you are calling the subform container. In the Locals window (back in Access 2007 again), Controls -> Item 3 has ControlName = Subform0.
When I go the property sheet of the parent form (eza_SwitchboardLook) in Design View, I see an entry for Subform0. The 'Other' tab -> Name shows Subform0, and the 'Data' tab -> Source Object is frmMember.
I read in another thread that the correct syntax is to use the control name (Subform0) and reference it using Forms!ParentForm!ControlName, so I changed the first line of code to:
Code:
SH = Forms!eza_SwitchboardLook!Subform0.Height / Forms!eza_SwitchboardLook!Subform0.Form.Section(0).Height
This also works in Access 2007, yet still the same error in Access 2013. Then I tried substituting 'frmMember' instead of Subform0 on this line - that gives the same error in Access 2007.