Option Groups

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
 
K

Ken Snell

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.
 
C

Chadlon

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top