Option Group

  • Thread starter Thread starter Rhonda
  • Start date Start date
R

Rhonda

In Access 2002 vba

I'm trying to check an option group for value using:

For I = 0 To 3
If Me!optFunct(I).Value = True Then
Let FuncCode$ = CStr(I)
End If
Nex I

The option group is named optFunct, bullets are named optFC(0), optFC(1),
optFC(2).

The error I get is: "Property let procedure not defined and property get
procedure did not return an object".

Any suggestions?
 
The option group itself should contain the value. Don't check the
constituant controls.

If Me!optFunct = [Desired Value] Then.....
 
storrboy said:
The option group itself should contain the value. Don't check the
constituant controls.

If Me!optFunct = [Desired Value] Then.....

Thanks That worked!

Not sure why they coded it the other way in vb6
 
Thanks That worked!

Not sure why they coded it the other way in vb6

From what I can recall (it's been a while since I used vb6) there is
not an actual option group, but rather controls created in an array
that one would manipulate as a group. Access controls are quite
different from classic vb ones.
 
Back
Top