refering to a option group ckeck box

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

Guest

Goog morning, I'm traying to make a VB code with one of my option group chek
box (check11) the problem is that VB returns an error message when I try to
use the chekbox value

if check11=true then
bla bla bla
end if

How to accomplish what I want?
 
filo666 said:
Goog morning, I'm traying to make a VB code with one of my option
group chek box (check11) the problem is that VB returns an error
message when I try to use the chekbox value

if check11=true then
bla bla bla
end if

How to accomplish what I want?

When using an OptionGroup you test the value of the group, not of the
individual option controls within.

Also a nit-pick...Standard Windows GUI convention dictates the use of
RadioButtons when offering mutually exclusive choices (as in an OptionGroup)
and CheckBoxes when offering choices where more than one can be chosen at
the same time.
 
You are probably getting an error 2427. You do not address individual
options in an option group. You only address the option group as a whole.
An option button within an option group has no value. The option group has
the value of the currently selected option.
 
Back
Top