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!

Combo box question 1

Status
Not open for further replies.

robmkimmons

Technical User
Jun 29, 2001
51
US
On a form I have a combo box [cboCorrType] that has a list of options with the last option being called "Other". Beside this combo box i have another field [txtCorrDesc] that is disabled.

What i would like is to have the disabled field become enabled whenever the user selects "Other" from the combo box (allowing the user to specify in the newly enabled field what the "other" is). I have tried several coding options but to no avail. Also, what is the best place for this code... on the "After Update" event?

Much thanks for any input!!

~Rob
 
In the AfterUpdate event of cboCorrType place this code:

If Me.cboCorrType = "Other" Then
Me.txtCorrDesc.Enabled = True
Else
Me.txtCorrDesc.Enabled = False
End If

That should do it!

Joe Miller
joe.miller@flotech.net
 
hey Joe,

many thanks!!

...after a little tweaking it works great! thanks for pointing me in the right direction.

~Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top