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

Making a text box only visible when a certian option is selected... 1

Status
Not open for further replies.

secretcrowds

Technical User
May 13, 2008
25
GB
I would like to know how to make a text box only visible when a certian option is selected in a combo box.

the options in the combo box are "pass" "fail" "observation"

i would like a text box to appear when "observation" is selected.

any help??

:]

"secret crowds rise up and gather
 
How are ya secretcrowds . . .
Code:
[blue]   Me![purple][b][i]TextboxName[/i][/b][/purple].Visible = True[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
is there nothing else in that code to verify that the text box only shows up when the option "observation" is selected?

"secret crowds rise up and gather
 
Code:
if me!combobox="observation" then
 Me!TextboxName.Visible = True
else
 Me!TextboxName.Visible = false
end if

You may want to also run this in the onCurrent of the form, as otherwise a new record will always be set to the visibility of the last record you were on.

SeeThru
Synergy Connections Ltd - Telemarketing Services
 
that worked a charm!

thank you very much!

"secret crowds rise up and gather
 
And the oneliner version:
Code:
Me!TextboxName.Visible = (Me!ComboBoxName = "observation")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top