Make visible by on click event

O

Opal

I have an unbound form with two bound subforms.
The second subform is not visible by default. I
would like to make visible when I click a button
on the first subform. Is this possible? Can
anyone tell me how?
 
D

Douglas J. Steele

Private Sub MyCommandButton_Click()

Me.Parent!Subform2Control.Visible = Not Me.Parent!Subform2Control.Visible

End Sub

Make sure Subform2Control is the name of the subform control on the parent
form. Depending on how you added the subforms, the name of the control may
be different than the name of the form being used as a subform.
 
O

Opal

Sorry Doug, I'm a little confused....

The first subform is "subfrmMSCourse" which contains
the button "cmdOpenDef", when the user clicks this
I want "subfrmMSDeficient" to be visible.

I'm not quite clear how your example, above,
accomplishes this.....?
 

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