Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch unvisible Subform to visible

Status
Not open for further replies.

EZLI

IS-IT--Management
Sep 3, 2002
31
LV
Hi,
How to switch unvisible subform placed in Form to visible
using Button.
Thank's in advance for help.
 
Forms!MainFormName!SubFormName.Visible=True

Hope this helps.

OnTheFly
 
Thank You OnTheFly.
It's working fine.

I have on more question.
I will try to hide subform content using CheckBox (placed on MainForm).
If ChekBox=True the subform must be unvisible.
How to do it?

Bob
 
In the AfterUpdate event procedure of the CheckBox:
Me![subform control name].Visible = Not Me!ChekBox
If the CheckBox is bound you may also consider the Current event procedure of the form.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top