B
briank
In my form (frmMain) I have created option buttons (VendorFilter) that I
would like to use as a filter within the form . . . filtering on [Vendor].
However when I click on any of the four radio buttons I do not see any filter
activity in the form. Any suggestions?
Main form name: frmMain
Option Name: VendorFilter
Private Sub Form_Filter(Cancel As Integer, FilterType As Integer)
Select Case Me!VendorFilter
Case 1
Me.Filter = [Vendor] = "Company A"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 2
Me.Filter = [Vendor] = "Company B"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 3
Me.Filter = [Vendor] = "Company C"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 4
Me.Filter = [Vendor] Like "*"
Me.FilterOn = False
End Select
End Sub
would like to use as a filter within the form . . . filtering on [Vendor].
However when I click on any of the four radio buttons I do not see any filter
activity in the form. Any suggestions?
Main form name: frmMain
Option Name: VendorFilter
Private Sub Form_Filter(Cancel As Integer, FilterType As Integer)
Select Case Me!VendorFilter
Case 1
Me.Filter = [Vendor] = "Company A"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 2
Me.Filter = [Vendor] = "Company B"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 3
Me.Filter = [Vendor] = "Company C"
Me.FilterOn = True
MsgBox "Filter Applied"
Case 4
Me.Filter = [Vendor] Like "*"
Me.FilterOn = False
End Select
End Sub