Option Groups

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create an option groups of (hours) and want
to set the selected radial button to the current hour, but
I cant seem to set the value ... c an anyone shed any
light to what I might be doing wrong, or how to do it ...

Thanks in advance

George
 
When you say "set the selected radial button to the current hour", what do
you mean? You want to change the caption of the button to the current hour?
You want to change the data value of the button to the current hour? More
info, please.
 
The option group contains within it x number of mutually exclusive options.
Let's say there are 24 - with option values 0 to 23 respectively.
When the option group achieves a value in that range then the appropriate
radio button lights up.

If your option group is called optHours, you could have some code that looks
at current time and assigns the hours value to optHours.

Something like
Me.optHours = Val(Time) ' val will only evaluate to the 1st colon

Where in your program you need to put this is not clear from your question.
 
Back
Top