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!

Yes/No toggle: Is it possible?

Status
Not open for further replies.

wildontknow

Technical User
Apr 21, 2003
2
0
0
GB
I have a form with two check boxes beside each question. One for YES and one for NO. I'd like the user to be able to change their mind and toggle NO and the check in the YES "disappear" automatically. Any ideas?
 
Wildontknow

In the AfterUpdate of FIELD1 you can put

[FIELD2].SetFocus
[FIELD2] = 0

and if the user clicks then on FIELD2 you can put this code in FIELD2's AfterUpdate property:

[FIELD1].SetFocus
[FIELD1] = 0

That way only 1 field's value can be checked.

Hope this helps.

Jim

"Get it right the first time, that's the main thing..." [wavey]
 
Don't create individual check boxes, rather, create an option group that contains your check boxes.
 
Would putting each pair of check boxes inside an option group supply what you need?
 
Thanks everyone for prompt responses (don't you folks have better things to do!!!) lol I played with a bunch of code and have it working now. I probably took the long way but if it ain't broke...

Thanks all.
 
What did you wind up doing?...just curious

"Get it right the first time, that's the main thing..." [wavey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top