UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Referencing a combobox in a subform, via a cmd button in its par    
 
   
Jammin1984
post Dec 4 2005, 10:03 PM
Post #1

UtterAccess Enthusiast
Posts: 69
From: UK



Hey all.

I wish to set a combobox's setLocked property to false.

It is in a sub form and wish to do this from a command button in the subforms parent form. I have looked about and can find ways to reference the forms properties, like size, visible etc, but not its controls.

Thanks much.
Go to the top of the page
 
+
R. Hicks
post Dec 4 2005, 10:13 PM
Post #2

UA Forum Administrator
Posts: 38,073
From: Birmingham, Alabama USA



You must reference the control via the Subform Control that displays the subform on the Main form ...

Here is an example ...
CODE
Me![SubformControlName].Form![YourComboName].Locked = True

RDH
Go to the top of the page
 
+
Jammin1984
post Dec 4 2005, 10:17 PM
Post #3

UtterAccess Enthusiast
Posts: 69
From: UK



Sweet, thanks for the quick reply.

Makes sense to me now.
Go to the top of the page
 
+
R. Hicks
post Dec 4 2005, 10:22 PM
Post #4

UA Forum Administrator
Posts: 38,073
From: Birmingham, Alabama USA



You are welcome .. (IMG:http://www.utteraccess.com/forum/style_emoticons/default/wink.gif)

RDH
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 08:25 PM