can you have more than two filters on one form? i have one and i need to add two more. when i added the second filter it popups to ask for the info ok, but it says i have syntax error, but the code is written the same as the 1st filter. can anyone help.
Here is the code:
Private Sub cmdFilter_Click()
Dim strFilter As String
strFilter = InputBox("Enter SalesRep #"
If Len(strFilter & ""
> 0 Then
DoCmd.ApplyFilter "", "SalesRepNum=" & CLng(strFilter)
End If
End Sub
Private Sub cmdFilter2_Click()
Dim strFilter As String
strFilter = InputBox("Enter Program Code #"
If Len(strFilter & ""
> 0 Then
DoCmd.ApplyFilter "", "Program Code=" & CLng(strFilter)
End If
End Sub
Here is the code:
Private Sub cmdFilter_Click()
Dim strFilter As String
strFilter = InputBox("Enter SalesRep #"
If Len(strFilter & ""
DoCmd.ApplyFilter "", "SalesRepNum=" & CLng(strFilter)
End If
End Sub
Private Sub cmdFilter2_Click()
Dim strFilter As String
strFilter = InputBox("Enter Program Code #"
If Len(strFilter & ""
DoCmd.ApplyFilter "", "Program Code=" & CLng(strFilter)
End If
End Sub