Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / December 2005

Tip: Looking for answers? Try searching our database.

#error in null / 0 value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
yolip - 12 Dec 2005 00:49 GMT
Dear all,

 I am having error when running the sum e.g.  =Sum([A])  , the value of [A]
will be 0 or null. I tried: sum(Nz([A],0)) and Nz(sum([A]),0) , but both
still got error on it. can anyone give me a hand?

Thanks
Yolip
Marshall Barton - 12 Dec 2005 01:40 GMT
>  I am having error when running the sum e.g.  =Sum([A])  , the value of [A]
>will be 0 or null. I tried: sum(Nz([A],0)) and Nz(sum([A]),0) , but both
>still got error on it. can anyone give me a hand?

You've leapt to the wrong conclusion  ;-)

Sum is not bothered by either Null or 0.  All of the
Aggregate functions ignore Null values and adding a 0 to
anything doesn't affect the result.

Most likely the problem is that your [A] is not a **field**
in the form's record source table/query.  It's a common
mistake to use a **control** name instead of a field name.

If that's not the issue. post a Copy/Paste of the actual
expression that you're using along with an explanation of
where the terms are coming from.

Signature

Marsh
MVP [MS Access]

Duane Hookom - 12 Dec 2005 01:55 GMT
If the value of [A] will be 0 or null, the sum will always be 0.

What does your error look like? Is the name of the control something other
than a field name?

Signature

Duane Hookom
MS Access MVP
--

> Dear all,
>
[quoted text clipped - 5 lines]
> Thanks
> Yolip
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.