Refer to main form control from subform

  • Thread starter Thread starter Max Moor
  • Start date Start date
M

Max Moor

Hi All,
The subject about says it all. What is the syntax used in subform's
VB code to refer to a control on its "parent" form? I've had it, but I
sure can't find it.

Thanks, Max
 
The syntax is
Forms!mainFormName!controlName

Hope This Helps
Gerald Stanley MCSD
 
Dear Max,

Will it be as simple as:
Private Sub Object_Event()
Me.Parent.Controls("Name").PropertyToUse etc.
End Sub

Mvg, Frans
 
Back
Top