By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,376 Members | 3,024 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,376 IT Pros & Developers. It's quick & easy.

Quick syntax question

P: 39
What's the correct syntax to reference a control that isn't in the local form?

I'm trying to enable a disabled control in a subform, from an "onChange" event occuring from the parent form.

Still learning. Thanks guys
Feb 22 '07 #1
Share this Question
Share on Google+
3 Replies


MMcCarthy
Expert Mod 10K+
P: 14,534
Try this ...

Expand|Select|Wrap|Line Numbers
  1. Forms![MainFormName]![SubformObjectName].Form![ControlName].Enabled = True
Feb 22 '07 #2

P: 39
Well that worked of course - Thanks again.


You know, I tried exactly that, but I left out the Form! part. I guess that's the key when referring to a foreign object?
Feb 22 '07 #3

MMcCarthy
Expert Mod 10K+
P: 14,534
Well that worked of course - Thanks again.


You know, I tried exactly that, but I left out the Form! part. I guess that's the key when referring to a foreign object?
Only when it's a subform.

Check this out

Referring to Items on a Sub-Form.

Mary
Feb 22 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.