Hi all,
I am trying to filter a subform, I can do a single item per field with no problem. I have one field that has would be as follows:
venue <>"amz" And <>"ali" but I am not sure how to code it, even hard code it. Below is what I have for a single filter coding.
If Not IsNull(Me.Combo3) And Not IsNull(Me.Combo7) Then
strSales = "refund = No AND venue = 'amz' AND expr1 ='" & Me.Combo7 & "' AND MonthName(Expr3) ='" & Me.Combo3 & "'"
Me.Total_Sales.Form.Filter = strSales
Me.Total_Sales.Form.FilterOn = True
End If
As you see above I want to get venue <> 'amz and <>ali' but can't get any combo I tried to work.
All suggestions welcome and appreciated....
I am trying to filter a subform, I can do a single item per field with no problem. I have one field that has would be as follows:
venue <>"amz" And <>"ali" but I am not sure how to code it, even hard code it. Below is what I have for a single filter coding.
If Not IsNull(Me.Combo3) And Not IsNull(Me.Combo7) Then
strSales = "refund = No AND venue = 'amz' AND expr1 ='" & Me.Combo7 & "' AND MonthName(Expr3) ='" & Me.Combo3 & "'"
Me.Total_Sales.Form.Filter = strSales
Me.Total_Sales.Form.FilterOn = True
End If
As you see above I want to get venue <> 'amz and <>ali' but can't get any combo I tried to work.
All suggestions welcome and appreciated....
Last edited: