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

Create an Optional Field

Status
Not open for further replies.

soupisgood84

Technical User
Apr 17, 2007
45
US
I am trying to create an optional field that only becomes available under certain circumstances.
I have a combo box that has many options in it, and the field is restricted to list/look-up only. When the selection isn’t on the list, I would like the use to pick “other”; then in another field enter what it is. The catch is that I want the field to remain locked or grayed out until the selection “other” has been picked.
Any ideas would be greatly appreciated.
 
This is a similar idea:
Field not displayed
thread702-1357550
 
Kinda similar but backwards. Also that only makes the the color of the field change so you cant see it; if you tabbed over you could still enter data.
Any other ideas? Thanks
 
Consider PHV's response in the thread linked above.
 
How are ya soupisgood84 . . .

In the [blue]After Update[/blue] event of the combobox:
Code:
[blue]   Me.[purple][b][i]FieldName[/i][/b][/purple].Enabled = (Me.[purple][b][i]ComboboxName[/i][/b][/purple].Column(1) = "other")[/blue]



Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top