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

Sum()

P: n/a
DS
Hi,
When using the Sum() Function it works fine as long as there is a record
present. When there is no record present I get the #Name? message. Hw
do you make the field default to zero when there is no record present?
Thanks
DS
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"DS" <bo******@optonline.net> wrote in message
news:Ly******************@news4.srv.hcvlny.cv.net. ..
Hi,
When using the Sum() Function it works fine as long as there is a record
present. When there is no record present I get the #Name? message. Hw
do you make the field default to zero when there is no record present?
Thanks
DS


Something like this:

iif(isnull([field]), sum([field]),"No Records Present")


Nov 13 '05 #2

P: n/a
DS wrote:
Hi,
When using the Sum() Function it works fine as long as there is a record
present. When there is no record present I get the #Name? message. Hw
do you make the field default to zero when there is no record present?
Thanks
DS

This MIGHT help:
=NZ(sum([fldToSum]),0)
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.