Hi all,
On a form I have a hidden command button. I want to make this button visible once another form has been opened and then closed.
Could I have some help with this one please.
You just need to reference the form and it's control to change it's properties.
Example, create a form with a command button to change the visible property of another forms command button.
Code:
Private Sub cmdChangeVisibleProperty_Click()
Form_frmCommandToChange.cmdTestButton1.Visible = Not Form_frmCommandToChange.cmdTestButton1.Visible
End Sub
With this code on my test form, if the command button's visible property is true then it changes to False and if False, of course it goes to true.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.