Stop Buttons showing when opening up form

  • Thread starter Thread starter Bob
  • Start date Start date
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
 
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
|
|
 
Hi Bob,
Have you set the .Visible property to NO in design mode for these buttons?
 
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
 
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
 
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
 

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

Back
Top