Forum Discussion
#Error in output (need a handler)
- Sep 18, 2024
Rather than calling the IIf function you can call the Nz function to return a value in place of a Null:
CurrAmount:Nz(CurrAmt,0)
With currency values, however, it is usually appropriate to set the DefaultValue property of a column to zero in a table definition, or, in the case of a computed column, return a zero in a query's result table. Null is the absence of a value and semantically ambiguous, e.g. what would a Null at the CreditLimit column in a Customers table mean?
Rather than calling the IIf function you can call the Nz function to return a value in place of a Null:
CurrAmount:Nz(CurrAmt,0)
With currency values, however, it is usually appropriate to set the DefaultValue property of a column to zero in a table definition, or, in the case of a computed column, return a zero in a query's result table. Null is the absence of a value and semantically ambiguous, e.g. what would a Null at the CreditLimit column in a Customers table mean?