Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not Reference the Main form from the sub form

Status
Not open for further replies.

Mack2

Instructor
Mar 12, 2003
336
US
I have one sub form on my main form. I am trying to set a check box value from my sub form, to my main form. So when I click a button on my sub form, it checks my check box on the main form.

The last expression I tryed was Me.Parent!ControlName

Thanks for your help!!!

 
Have you tried the expression builder (loaded forms) ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Yes, I have. That is what I go to first. And for some reason, it gives me error messages. The error reads "Problem communicating with the ole server or active x contol"

THANKS
 
Try this syntax -

Me.Parent.ControlName

Or

Me.Parent.Form.ControlName.Value
 
How are ya Mack2 . . .

Refer to Form and Subform properties and controls

Calvin.gif
See Ya! . . . . . .
 
Thanks for the reply's.

It is still bringing up that error message. I did get the same error message when I selected a dropdown box. So I wonder if it has to do with something else besides the syntax. This is crazy.
Any other thought would be appreciated!
Thanks
 
Mack2 . . .

Post the current code line you've tried . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top