A
Ayo
How do I get this filter click sub to work when "Me.cmbFieldValues.Value"
values are "Yes/No". When I click on the comboBox for Me.cmbFieldValues.Value
I get 0 and -1 but when I click on the cmdFilter button I get and error
message "You canceled the previous operation." I don't know what this mean or
how to resolve this. Any help will be greatly appreciate.
Thank you.
Private Sub cmdFilter_Click()
If Me.cmbTrackerFields.Value = "Vendor" Then
Me.Form.Filter = "[Invoice Tracker].[" & Me.cmbTrackerFields.Value &
"]='" & Me.cmbFieldValues.Value & "'"
Me.Form.FilterOn = True
End if
End Sub
values are "Yes/No". When I click on the comboBox for Me.cmbFieldValues.Value
I get 0 and -1 but when I click on the cmdFilter button I get and error
message "You canceled the previous operation." I don't know what this mean or
how to resolve this. Any help will be greatly appreciate.
Thank you.
Private Sub cmdFilter_Click()
If Me.cmbTrackerFields.Value = "Vendor" Then
Me.Form.Filter = "[Invoice Tracker].[" & Me.cmbTrackerFields.Value &
"]='" & Me.cmbFieldValues.Value & "'"
Me.Form.FilterOn = True
End if
End Sub