HIDE/UNHIDE SUBFORM

F

FRANK

Is it possible to hide/unhide a subform on an active form?
I would like to click a check box to make it visible or
uncheck the box to make it visible.
Thanks.
Frank
 
A

Alex Dybenko

yes, i think

in check box afterupdate proc:

me.subformcontrol.visible=me.checkboxwithswitchvisibilityofsubform
 
J

John Spencer (MVP)

Sure the subform control has a visible property so in the form's code module you
would need

Me.NameOfSubformControl.Visible = Not(Me.CheckboxName)

I would put that code in the after update event of the checkbox and, perhaps, in
the on load event of the form.
 

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