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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top