Setting the Default Option Value

jcstanley

Registered User.
Local time
Today, 11:46
Joined
Dec 17, 2006
Messages
15
Hi

I currently have a form which has 3 option values that change depending on the chosen value in a combo box using the following code:

Me.Controls("OptionA").OptionValue = Me.PriceA
Me.Controls("OptionB").OptionValue = Me.PriceB
Me.Controls("OptionC").OptionValue = Me.PriceC

If possible I would like to set OptionA as the default but not sure how to do this.

Thanks
 
not quite sure if this is what you are asking but you can set the default value for a set of options in an option group by setting the defaultvalue in the group frame.

HTH

Peter
 
Is there any code which will automatically 'click' the radio button for first option, which is in this case is OptionA. At present non of the radio buttons are selected and the user has to manually click their chosen option.
 
just set the default value in design view and that is what it will use untill another button is clicked. you set the value in the group frame not on the button itself

Peter
 
I forgot to mention that the values change.
so no matter what the value may be is it possible to automatically select value A?
 

Users who are viewing this thread

Back
Top Bottom