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

Display text box from combo box selection

Status
Not open for further replies.

ron513

Technical User
Mar 9, 2004
31
US
Hello

On a form I would like to display specific text boxes depending on a selection the user makes in a combo box on the same form. In the form load event the text boxes are visible = false.
Would the code be similar to this:

Private Sub ShowEntry()

If Me.cboEntry.Text = "Comments" Then
Me.txtComments.Visible = True
Me.txtQuestion.Visible = False
End If
End Sub

Thanks

Ron
 
I think it should be in the afterupdate() of the combo.

Pampers [afro]
Just became father!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top