ordendelfai
Technical User
I am trying to code a filter linked to 3 buttons that values are 1, 2 and 3 in an Option Group.
The filter criteria is if the user clicks button "1" in the option group, then the form will filter out any records that Do have a null value in a specific field.
If the user clicks button 2, then it filters out the records that Do Not have a null value.
Button 3 is show a show all button.
I have tried coding it several ways, my last attempt below. If you could tell me the proper way, would really appreciate it
>
~~~~~~~~~~Code~~~~~~~~~~~~~~`
Select Case optgrp_Coverage
Case Is = 1
Me.Filter = IsNotNull([txt_Volunteer])
Me.FilterOn = True
Case Is = 2
Me.Filter = IsNull([txt_Volunteer])
Me.FilterOn = True
End Select
The filter criteria is if the user clicks button "1" in the option group, then the form will filter out any records that Do have a null value in a specific field.
If the user clicks button 2, then it filters out the records that Do Not have a null value.
Button 3 is show a show all button.
I have tried coding it several ways, my last attempt below. If you could tell me the proper way, would really appreciate it
~~~~~~~~~~Code~~~~~~~~~~~~~~`
Select Case optgrp_Coverage
Case Is = 1
Me.Filter = IsNotNull([txt_Volunteer])
Me.FilterOn = True
Case Is = 2
Me.Filter = IsNull([txt_Volunteer])
Me.FilterOn = True
End Select