Combining IIf expressions

Pooks_35

Registered User.
Local time
Today, 10:33
Joined
Mar 14, 2013
Messages
54
I need to build an expression that not only filters out the 9 in a column, but also the number 14. How do I build this expression to make it work for both 9 and 14. Currently it works just for 9. How do I make it work both numbers?

RegularPayment: IIf([tblPayments].[PaymentMethodID]<>9,[tblPayments].[PaymentAmount],Null)
 
(untested)

RegularPayment: IIf([tblPayments].[PaymentMethodID]<>9 and [tblPayments].[PaymentMethodID]<>14,[tblPayments].[PaymentAmount],Null)
 
another alternative is

RegularPayment: IIf([tblPayments].[PaymentMethodID] not in (9,14),[tblPayments].[PaymentAmount],Null)
 

Users who are viewing this thread

Back
Top Bottom