Re: Dsum return 0 instead of Null?
I don't think Joan meant DSum(...) * 1, I think she meant:
Nz(DSum(...)) * 1 converts Null to 0
This is because Nz(DSum(...)) converts Null to Empty
and Empty * 1 yields 0.
The proper way to do this is:
Nz(DSum(...), 0)
This makes use of the Nz function's optional second argument.
.
Relevant Pages
- Re: [PHP] Re: isset($a->b) even if $a->b = null
... and yields the correct result. ... echo "yes"; ... Or change isset() to empty. ... are considered "empty". ... (php.general) - Application::CompanyName property
... simple form app, yet the corresponding properties in the global ... Application object remain empty. ... yields an empty string in the Application::CompanyName property. ... Do I have to acces the Application ... (microsoft.public.dotnet.languages.vc) - Re: Possible ways to link existing user table into SQLMembershipProvider?
... Got a problem now where 1 out of 2 login attempts yields an empty ... Same with normal SQLMembership. ... (microsoft.public.dotnet.framework.aspnet.security) - Re: multiple parameters in if statement
... the "get" method lets you have an optional second argument that gets returned if the key is not in the dictionary. ... The other thing I'd recommend is stick that long list of fields in a list, and then do operations on that list: ... then to see if all those fields are empty: ... Kun wrote: ... (comp.lang.python) - Re: 0 disk space
... If you have Norton SystemWorks, empty your protected files. ... (microsoft.public.windowsxp.basics) |
|