I forgot to mention that the Option Group is a Subform
Not following you. An Option Group is not the same thing as a Subform. Did
you mean that the Option Group is placed within a subform? If so, you
would
modify as follows;
Select Case Me![YourDaysControl]
Case < 16
Me![NameOfYourSubformControl].Form![YourOptionGroup] = 1
Case < 26
Me![NameOfYourSubformControl].Form![YourOptionGroup] = 2
Case < 41 (or whatever)
Me![NameOfYourSubformControl].Form![YourOptionGroup] = 3
End Select
--
_________
Sean Bailey
Robbie Doo said:
Thank you Sean for the input. I forgot to mention that the Option Group
is a
Subform feeding from a different Table. This method gave me an error.
:
You can use some code like the following in the Current event of your
form and the After Update event of your "days" control;
Select Case Me![YourDaysControl]
Case < 16
Me![YourOptionGroup] = 1
Case < 26
Me![YourOptionGroup] = 2
Case < 41 (or whatever)
Me![YourOptionGroup] = 3
End Select
--
_________
Sean Bailey
:
Is it possible to fill the Option Group automatically depending on a
field
value on the Main form?
I want my Option to mark the 1st radio button when the days are less
than 15
or the 2nd button if the days are between 16-25 and so on...
Thank you,