D
DS
This statement works if I only use one Not Like, the minute I add a
second or more Not Likes it stops filtering and gives me every record!
I tried this in a Query also. One Not Like works but add another and it
gives me every record.
Any help appreciated.
Thanks
DS
With Me.CmbDepositType
..RowSource = "SELECT PayName.PaymentNameID, PayName.PaymentName, " & _
"PayName.PaymentType " & _
"FROM PayName " & _
"WHERE (((PayName.PaymentType) Not Like ""3"")) " & _
"OR (((PayName.PaymentType) Not Like ""7"")) " & _
"OR (((PayName.PaymentType) Not Like ""9"")) " & _
"OR (((PayName.PaymentType) Not Like ""10"")) " & _
"OR (((PayName.PaymentType) Not Like ""11"")) " & _
"ORDER BY PayName.PaymentName;"
..Requery
End With
second or more Not Likes it stops filtering and gives me every record!
I tried this in a Query also. One Not Like works but add another and it
gives me every record.
Any help appreciated.
Thanks
DS
With Me.CmbDepositType
..RowSource = "SELECT PayName.PaymentNameID, PayName.PaymentName, " & _
"PayName.PaymentType " & _
"FROM PayName " & _
"WHERE (((PayName.PaymentType) Not Like ""3"")) " & _
"OR (((PayName.PaymentType) Not Like ""7"")) " & _
"OR (((PayName.PaymentType) Not Like ""9"")) " & _
"OR (((PayName.PaymentType) Not Like ""10"")) " & _
"OR (((PayName.PaymentType) Not Like ""11"")) " & _
"ORDER BY PayName.PaymentName;"
..Requery
End With