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 "No".<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.
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.