I had a filter on a form that was working great. it would sort all my records based on a field (SALESREPNum) I had been using it for weeks. I ran several reports yesterday and changed two other fields that are not linked to this field and all of a sudden the filter stopped working.
"The expression on click you entered as the event property setting produced the following error: The expression you entered refers to an object that is closed or doesn't exist"
here is the filter.
Dim strFilter As Stringstr
Filter = InputBox("Enter SalesRep #"
If Len(strFilter & ""
> 0 Then DoCmd.ApplyFilter "", "SalesRepNum=" & CLng(strFilter)
End If
Nothing has changed with the field that holds the info.
"The expression on click you entered as the event property setting produced the following error: The expression you entered refers to an object that is closed or doesn't exist"
here is the filter.
Dim strFilter As Stringstr
Filter = InputBox("Enter SalesRep #"
If Len(strFilter & ""
End If
Nothing has changed with the field that holds the info.