Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making command button visible 1

Status
Not open for further replies.

kpryan

Technical User
Aug 24, 2005
282
US
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.


Ken
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top