TravelingCat
Registered User.
- Local time
- Today, 12:46
- Joined
- Feb 22, 2010
- Messages
- 42
Ok, i have yet another question...
I have a main form, frmEvent, and a subform inside it, frmAssignments.
On the subform i have an option group, which is supposed to filter the assignments by type. Here's the code:
globFilt is a global variable. Subform's allow edits is set to Yes now.
Debug stops on the red line and gives me "You canceled the previous operation".
The exact same code (with another names) worked great on the main form, so i'm guessing it has to do with option group being on the subform.
Please enlighten me, what is wrong here...
Thanks
I have a main form, frmEvent, and a subform inside it, frmAssignments.
On the subform i have an option group, which is supposed to filter the assignments by type. Here's the code:
Code:
Private Sub FrameFilterAssignTypes_AfterUpdate()
globFilt = "assignType in " & IIf(FrameFilterAssignTypes = 1, "(1,2,3)", IIf(FrameFilterAssignTypes = 2, "(1)", IIf(FrameFilterAssignTypes = 3, "(2)", "(3)")))
Filter = globFilt
FilterOn = True
End Sub
globFilt is a global variable. Subform's allow edits is set to Yes now.
Debug stops on the red line and gives me "You canceled the previous operation".
The exact same code (with another names) worked great on the main form, so i'm guessing it has to do with option group being on the subform.
Please enlighten me, what is wrong here...
Thanks