By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

summing problem

P: 51
i have two fields which i want the the sum on another column, the problem is when the other field is blank, i dont get the total..

eg

field 1 field 2 total
1 1 2

1 0 1

1 empty empty

why dont i get the 1 value on the third case, whats wrong with Access

i found this site from microsoft and its useless http://office.microsoft.com/en-us/access/HA011864391033.aspx?pid=CL100570041033#5

maybe u guys can help me here...tnx
May 17 '07 #1
Share this Question
Share on Google+
1 Reply


Expert
P: 97
You have to use the nullzero function nz(), which converts null to zero in calculations.

total: nz([field1])+nz([field2])
May 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.