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

"Other" Option

Status
Not open for further replies.

troix

Technical User
Jan 20, 2004
46
US
I have an option box with the races/ethicities in it. I have an "Other" text box. I want to fix it where they can't type in "Other Text Box" UNLESS they fill in the bubble in the option box for other.

Any ideas?
 
on the after update event for the bubble, and for the forms on current event, put the code that says ----

if forms!yourformname!yourbubblename = true then
forms!yourformname!otherfielname.enabled = true
else
forms!yourformname!otherfielname.enabled = false
endif

ChaZ


Ascii dumb question, get a dumb Ansi
 
Okay I am still not understanding, so i apologize

What I'd like to do is re-explain it, give more detail and then see what you think.

Each Race is given a number A=1, B=2, C=3 Then Other=99
The number goes into the field called "ETHNICITY"

Then IF they click Other, that goes into the text field called "ETHNICITY_OTHER"

However, unless they check "Other" in Ethnicity, I don't want "Ethnicity_Other" to be enabled.

Hopefully that makes sense and gives you plenty of information.
 
Maybe I am confused. You want a check box or circle thingie that unless it is checked, they can not put entries into Ethnicity_Other. The code I suggested above will facilitate that.

If I am wrong, I appologize, but I think thats what you are saying.



Ascii dumb question, get a dumb Ansi
 
I want a circle "thingy" that unless OTHER is checked from the list, they can not input anything into the check box.
 
Troix,

I believe Blorf is on the money with this one. If the user selects A,B, or C, they will not be allowed to fill in the text box labeled "Other". If they select other from the option group, then they are allowed to fill in the text box. In order to achieve this, you must add code to the option button event that allows the text box to go from enabled.false to enabled.true. That's what Blorf is saying, just in a little more verbage. That is the way I would do it.

Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top