C
Cire via AccessMonster.com
Hi all, i have several controls on my form so it looks quite cluttered. I
would want to use a toggle button to enable the user to hide/unhide controls.
I.e the form loads up with 4 controls, if the user wants more controls, he
clicks the toggle button which i've named "More Options" and 2 more controls
appears. When he clicks it again, these controls go back to hidden state, i.e.
controlname.visible = false
unfortunately i haven't dabbled with toggle buttons thus far in my previous
applications and searching across different forumns hasn't gave me any
information on it. So how do i do it?
my initial code:
Private Sub MoreOpt_Click()
With Me
.cbxRegion.Visible = True
.cbxCountry.Visible = True
End With
End Sub
both combo boxes have their visible set to no in the properties window. so
when i 1st click the toggle button, the controls show up but i don't know how
to hide it back when the user clicks the toggle button again.
hope someone can help me.
Thanks
Eric
would want to use a toggle button to enable the user to hide/unhide controls.
I.e the form loads up with 4 controls, if the user wants more controls, he
clicks the toggle button which i've named "More Options" and 2 more controls
appears. When he clicks it again, these controls go back to hidden state, i.e.
controlname.visible = false
unfortunately i haven't dabbled with toggle buttons thus far in my previous
applications and searching across different forumns hasn't gave me any
information on it. So how do i do it?
my initial code:
Private Sub MoreOpt_Click()
With Me
.cbxRegion.Visible = True
.cbxCountry.Visible = True
End With
End Sub
both combo boxes have their visible set to no in the properties window. so
when i 1st click the toggle button, the controls show up but i don't know how
to hide it back when the user clicks the toggle button again.
hope someone can help me.
Thanks
Eric