button click to make other buttons appear

R

ryan.fitzpatrick3

I have one button that is an Update button, meaning that when I click
this button the text boxes come available (through enabled) to input
data into. Upon clicking the update button there are two buttons that
I have that I would like to come available as well, save and delete.
When I click the update button again I want the buttons to disappear.
Thanks.

ryan
 
G

Golfinray

I have one button that is an Update button, meaning that when I click
this button the text boxes come available (through enabled) to input
data into. Upon clicking the update button there are two buttons that
I have that I would like to come available as well, save and delete.
When I click the update button again I want the buttons to disappear.
Thanks.

ryan
 
R

ryan.fitzpatrick3

On exit doesn't work, because I want to be able to essentially toggle
on the update button on and off and the delete and save button should
appear and disappear respectively. The on exit makes them disappear
when I click off of the button and that's not what I want.
 
M

mcescher

On exit doesn't work, because I want to be able to essentially toggle
on the update button on and off and the delete and save button should
appear and disappear respectively. The on exit makes them disappear
when I click off of the button and that's not what I want.




- Show quoted text -

Assuming good button names it would be something like this.

Private Sub cmdToggle_Click()
cmdSave.visible = not cmdSave.Visible
cmdDelete.visible = not cmdDelete.Visible
End Sub

Hope this helps,
Chris M.
 
R

ryan.fitzpatrick3

That's what I wanted, thanks!

ryan


Assuming good button names it would be something like this.

Private Sub cmdToggle_Click()
cmdSave.visible = not cmdSave.Visible
cmdDelete.visible = not cmdDelete.Visible
End Sub

Hope this helps,
Chris M.
 

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

Top