Hello All,
I'm trying to use the value of one option group to toggle the visibility of a second option group.
The first option group has five options. If option 3 is selected, I want it to make a second option group visible. (Eventually, I will add code to make a third option group visible when option 4 is chosen in the first option group).
Right now I am getting the error:
"Compile error: Expected: = "
when I run the following code:
Frame12 is the first option group with five options. CPRptCat is the second option group which is normally invisible.
Can anyone tell me why I'm getting the error I am? Also, should I be evaluating the frame or the actual option control?
Thanks for sharing your wisdom.
TechieJr.
I'm trying to use the value of one option group to toggle the visibility of a second option group.
The first option group has five options. If option 3 is selected, I want it to make a second option group visible. (Eventually, I will add code to make a third option group visible when option 4 is chosen in the first option group).
Right now I am getting the error:
"Compile error: Expected: = "
when I run the following code:
Code:
Private Sub Frame12_AfterUpdate()
IIf([Frame12]=3,[CPRptCat].Visible = True,[CPRptCat].Visible = False)
End Sub
Can anyone tell me why I'm getting the error I am? Also, should I be evaluating the frame or the actual option control?
Thanks for sharing your wisdom.
TechieJr.