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

Visible control 1

Status
Not open for further replies.

JMM

Technical User
Feb 17, 2000
37
NZ
My form has a command button (to add a new record) and a combo box.<br>
<br>
What do I do to have the combo box remain invisible until the command button (to add a new record) is clicked?<br>
<br>
Thanks.<br>
<br>
<br>
<br>
<br>

 
Under the combo box properties change the Visible Property to &quot;No&quot;.<br>
<br>
Then on the OnClick property of the commandbutton type the following code:<br>
<br>
Me.Combobox.Visible = True<br>
<br>
Combobox = the name of your combobox
 
Rather than specifying invisible in the property box, you may want to put it in the Form's OnCurrent Event. That way each time go to a new record it will be invisible again. Alternately you could put the code in the AfterInsert event, so that it became invisible at that point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top