I created an option group to filter records. Option 1 to view all records and Option 2 to view just the active members. The active member field is a yes/no data type.
When I select the Active Member option I get a message that the previous operation was canceled. I'm missing something somewher but can't figure it out. Below is my code...Help!
Private Sub FilterOptions_AfterUpdate()
' Apply or remove the filter for the option the user chose.
If FilterOptions = 2 Then
Me.Filter = "Active = '-1'"
Me.FilterOn = True ' Apply the filter.
Else
Me.FilterOn = False ' Remove the filter.
End If
End Sub
When I select the Active Member option I get a message that the previous operation was canceled. I'm missing something somewher but can't figure it out. Below is my code...Help!
Private Sub FilterOptions_AfterUpdate()
' Apply or remove the filter for the option the user chose.
If FilterOptions = 2 Then
Me.Filter = "Active = '-1'"
Me.FilterOn = True ' Apply the filter.
Else
Me.FilterOn = False ' Remove the filter.
End If
End Sub