hi,
i have part of a query that looks like this: it calculates a calculated field. however, i want to skip records when this calculated field is zero. how can i accomplish that, please?
IIf([check_amt] Is Null,(0),
(Nz([invoice_amt],0)+Nz([credit_debit_amt1],0)+
Nz([credit_debit_amt2],0)+Nz([credit_debit_amt3],0)+
Nz([credit_debit_amt4],0)+Nz([credit_debit_amt5],0)+
Nz([credit_debit_amt6],0)+Nz([credit_debit_amt7],0)+
Nz([credit_debit_amt8],0)+Nz([credit_debit_amt9],0)+
Nz([credit_debit_amt10],0)-Nz([check_amt],0)-
Nz([check_amt_2],0)-Nz([check_amt_3],0)-
Nz([check_amt_4],0)-Nz([check_amt_5],0))) AS balance_due
the balance_due is not in the database, it's a calculated field. when i reference in the query, it opens up an input box. any ideas?
i have part of a query that looks like this: it calculates a calculated field. however, i want to skip records when this calculated field is zero. how can i accomplish that, please?
IIf([check_amt] Is Null,(0),
(Nz([invoice_amt],0)+Nz([credit_debit_amt1],0)+
Nz([credit_debit_amt2],0)+Nz([credit_debit_amt3],0)+
Nz([credit_debit_amt4],0)+Nz([credit_debit_amt5],0)+
Nz([credit_debit_amt6],0)+Nz([credit_debit_amt7],0)+
Nz([credit_debit_amt8],0)+Nz([credit_debit_amt9],0)+
Nz([credit_debit_amt10],0)-Nz([check_amt],0)-
Nz([check_amt_2],0)-Nz([check_amt_3],0)-
Nz([check_amt_4],0)-Nz([check_amt_5],0))) AS balance_due
the balance_due is not in the database, it's a calculated field. when i reference in the query, it opens up an input box. any ideas?