Refer to main form control from subform

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
 
G

Gerald Stanley

The syntax is
Forms!mainFormName!controlName

Hope This Helps
Gerald Stanley MCSD
 
F

Frans van Zelm

Dear Max,

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

Mvg, Frans
 
Top