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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding controls with command button

Status
Not open for further replies.

ind

Programmer
Mar 9, 2000
121
US
I want to hide a control with a one command button. When the user click the button the control is invisible, when they click the button again it reappears. How can I do this???<br><br>Thanks for the help!!!!!!!!!!!!!!!!!!!
 
here is an example from canned Access data base<br><br>If Me![Toggle View].Caption = &quot;&View Expenses&quot; Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Print Invoice Time Subform].Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Print Invoice Expenses Subform].Visible = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Toggle View].Caption = &quot;&View Hours&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Print Invoice Expenses Subform].Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Print Invoice Time Subform].Visible = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Toggle View].C
 
cut off last line sorry<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Me![Toggle View].Caption = &quot;&View Expenses&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top