Toggle Buttons

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I get a toggle button to display a hidden subform?

What is the code for this, and where do I put it?

If any one can help?
 
Say your subform object is named "frmSub" and your toggle button is
named "tglShowSubform". Then you could put the following code in the
click event of the toggle button:

Private Sub tglShowSubform_Click()
Me!frmSub.Visible = Me!tglShowSubform
End Sub

If the toggle button is pressed in, it's value is True, and the subform
is made visible. Otherwise, not.

Jerry
 

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

Similar Threads


Back
Top