View Full Version : radio button help...
lazyuser
02-18-2009, 12:54 PM
hi,
i am working on a form where i am using frame and two radio/option buttons. radio button 1 should be enabled and selected/checked when the form/frame loads. how can i achieve this. i dont see the 'checked' property for this radio button (so i am not able to turn it to true or false).
also, is it possible to replace the frame name (frameAdd) with the radio button(optAdd) and enable users to check/uncheck the radio button?
any help is greatly appreciated. thankkkzzzz
fumei
02-18-2009, 01:10 PM
"i am working on a form" - I assume you mean a userform.
Option Buttons have a Value property. The default is False (unselected). If you want it to default as selected, change its Value property to True. When the userform loads...it will be selected, or "checked", although as it is not a checkbox, "checked" is not really accurate.
"also, is it possible to replace the frame name (frameAdd) with the radio button(optAdd) and enable users to check/uncheck the radio button?"
I do not understand this.
What is the connection between the frame name and the option button name?
I take it you have two option buttons IN a frame - although you do not state this (which, BTW, would be helpful).
When you have option buttons IN a frame (as opposed to on a userform), then only one may be selected ("checked"). However, user should be able to select/unselect each of them as they wish.
lazyuser
02-18-2009, 01:33 PM
"i am working on a form" - I assume you mean a userform.
Option Buttons have a Value property. The default is False (unselected). If you want it to default as selected, change its Value property to True. When the userform loads...it will be selected, or "checked", although as it is not a checkbox, "checked" is not really accurate.
"also, is it possible to replace the frame name (frameAdd) with the radio button(optAdd) and enable users to check/uncheck the radio button?"
I do not understand this.
What is the connection between the frame name and the option button name?
I take it you have two option buttons IN a frame - although you do not state this (which, BTW, would be helpful).
When you have option buttons IN a frame (as opposed to on a userform), then only one may be selected ("checked"). However, user should be able to select/unselect each of them as they wish.
sorry if im confusing.:(
yes, i am using a user form. it has basically, three option buttons. the first one (optButton1), should be checked by default when this form loads. the form has a frame (frameAdd). this frame again has optButton2 and optButton3 as the other two option buttons. optButton2 needs to be checked by default again.
regarding the frame name:
is it possible use optButton1 where the name(caption) of the frame appears?
fumei
02-18-2009, 01:41 PM
You need to do a little bit more reading in Help. And more thinking about what you are saying/asking.
"the first one (optButton1), should be checked by default when this form loads."
I already mentioned how to do that.
"regarding the frame name:
is it possible use optButton1 where the name(caption) of the frame appears?"
You answer your own question. The caption of any control is a string. You can make it any string you like (with some restrictions on length). In other words you can make the caption of the frame "wkehkasdhaxC ADLHALDH" if you like.
Whatever.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.