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

Radio Button AUTO selected when opened

Status
Not open for further replies.

Compuboy

Programmer
Jun 8, 2004
38
US
I have 2 radio buttons in my form. When the form is opened I want one of the radio buttons to be automatically selected. What code do I need to put under the Form_Open function.
 
If the radio buttons are within an OptionGroup control, then you may try to assigne a vlue to this option group.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Could'nt you do this in the table under the default value = true of the button

Hope this helps
Hymn
 
What you want to do in your form_open event is set the value of your option button9s) to 1 and set the value of the unselected buttons to 0.

ex.: option1.value =1
option2.value = 0

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top