Stop Buttons showing when opening up form

B

Bob

I have a button on my Main Start up page that when click makes these buttons
visible, but when I open up my DB they automatically show on start up, is it
possible they not be visible till I click ckbHelp.......Thanks for any
Help.....Bob

Private Sub ckbHelp_Click()
If ckbHelp = True Then
cmbHelpNewHorse.Visible = True
cmbHelpActFinHorse.Visible = True

End If

If ckbHelp = False Then
cmbHelpNewHorse.Visible = False
cmbHelpActFinHorse.Visible = False
End If

End Sub
 
J

JK

Bob,

In design view, set the property pf the *button* Visible=No

Regards/Jacob

|I have a button on my Main Start up page that when click makes these
buttons
| visible, but when I open up my DB they automatically show on start up, is
it
| possible they not be visible till I click ckbHelp.......Thanks for any
| Help.....Bob
|
| Private Sub ckbHelp_Click()
| If ckbHelp = True Then
| cmbHelpNewHorse.Visible = True
| cmbHelpActFinHorse.Visible = True
|
| End If
|
| If ckbHelp = False Then
| cmbHelpNewHorse.Visible = False
| cmbHelpActFinHorse.Visible = False
| End If
|
| End Sub
|
|
 
B

Bob

You guys are so Clever!! I jumped the gun and created a Check box instead ,
What a waste of time Thanks Worked Brilliant Regards Bob
 
B

Bob V

Thanks Tom that saved a lot of typing :)
What if you had 40 Buttons and they all started with
cmbHelp, is it possible to write code , cmbHelp(Anything).Visible = ckbHelp
Thanks Bob
 
L

Larry Daugherty

Nothing quite that easy but you can use
For ..... Each on the controls collection comparing some string
constant to part of the control name to do the same thing.

HTH
 
Top