And and Or in an IIf Query:

bali3377

Registered User.
Local time
Today, 12:58
Joined
Jan 31, 2010
Messages
13
UnclCrs: Sum(IIf([TaxYrPaid]="2011" And [BankRec]>"0419",[AmountPaidDue],0))

This query field works as it stands however I want to add another element : The BankRec should be 0419 OR Null. I dont know much on the SQL front I use the Access front to build, so any ideas have to be in this format or if in SQL could you write it out exactly as it will look so I can just copy it. Many thanks:)
 
UnclCrs: Sum(IIf([TaxYrPaid]="2011" And ([BankRec]>"0419" Or [BankRec] Is Null),[AmountPaidDue],0))
 

Users who are viewing this thread

Back
Top Bottom