Full Version: Referencing a combobox in a subform, via a cmd button in its par
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
Jammin1984
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.
R. Hicks
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
Jammin1984
Sweet, thanks for the quick reply.

Makes sense to me now.
R. Hicks
You are welcome .. wink.gif

RDH
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.