View Single Post
  #1  
Old April 30th, 2008, 09:33 PM posted to microsoft.public.access.forms
Molasses26
external usenet poster
 
Posts: 25
Default second Option group not recognized

I created a form with one option group on it and later added a second option
group but when I try to reference the options in the second group in VB code
it doesn't "see" them.
Basically my form consists of a text box called KW
One option group called Metering with 4 choices
Option11 = 1
Option13 = 2
Option15 = 3
Option17 = 4
One option group called Service with 4 choices:
Option22 = 5
Option24 = 6
Option26 = 7
On my KW field I want to write an AfterUpdate code that disables the
Option26 in the Service group if the value of KW is less than 20.
IF me.kw 20 then
me.option26.enable = false
else
me.options6.enable = true
end if

When I am typing the code and I type me. I see the options from the first
group on the list but not the options from the second group. What is my
malfunction here?

Thanks!