Question on Iff Statement

J

John Lane

Using Access 2007, I have the expression "IIf(IsNull(Sum([Deposit
Amount])),0,Sum([Deposit Amount]))" in a query. All the data is null, but I
am not geting the "0" output. I don't se what I am doing wrong. The field
"Deposit Amount" is a Currency field. Thanks.
 
J

Jeff Boyce

John

"All the data is null" ... how do you know this?

If the field allows zero-length strings, they might be 'empty', but not
null.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query Selection and Criteria 1
IIF Query for Numeric Values in Text Field - #ERROR 2
report calculation 5
DSum 3
IIF statement 6
One to Many Relationship 2
Transposing data in Access 2007 Query 1
Query Query 3

Top