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.
 

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

Back
Top