Making a control disappear based on input in a textbox

  • Thread starter Thread starter lintonra
  • Start date Start date
L

lintonra

I have a textbox on my form that i only want to appear when the user
slects a certain value in a combo box. This piece works. However, when
the user proceeds to anotehr record the textbox is still visible on the
form despite the condition not being true.
 
Two things:

Set the Visible property of the textbox to False and add a second statement
to the IF:

If combobox.value = "Whatever" then
txtbox.visible = true
Else
txtbox.visible = false
End if
 
Use the Form_Current Event also to check the criteria and show / hide the
TextBox if required.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top