Re: Summing when one value is NULL
- From: Nadeem <Nadeem@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 4 Jul 2005 22:49:02 -0700
Sue Compelling
This is definition of NZ Function, This is not the proper way to tell
someone to search in help. This is the best way, I assume. This is Microsoft
way to exaplin thing in incomplete format.
Nadeem
Nz Function
You can use the Nz function to return zero, a zero-length string (" "), or
another specified value when a Variant is Null. For example, you can use this
function to convert a Null value to another value and prevent it from
propagating through an expression.
Nz(variant, [valueifnull])
=(Nz([211 Service Enquiries], 0)
In your case u are telling this function that return zero in case ([211
Service Enquiries] is null value.
U can also modify this function in case u want return some Text value when u
donot want to use this function in any formula like
=(Nz([211 Service Enquiries], " Your Value is Null")
Thanks
"Sue Compelling" wrote:
> Brilliant Tina - that worked.
>
> Tell me - what is the formula 'saying' - ie what the Nz all about [I'm an
> Access newbie]
> --
> Sue Compelling
>
>
> "tina" wrote:
>
> > try
> >
> > =(Nz([211 Service Enquiries], 0) + Nz([Reception Services], 0) + Nz([Wrong
> > Number], 0) + Nz([Hang Up / Hoax / Nuisance], 0))
> >
> > hth
> >
> >
> > "Sue Compelling" <SueCompelling@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:B9201526-886A-43FA-ACC0-91E36D4E0C13@xxxxxxxxxxxxxxxx
> > > Hi
> > >
> > > I have the following formula, which works when all fields for a date range
> > > are filled in. However, if there were no calls of a particular type for
> > the
> > > period, ACCESS returns a blank. How do I get ACCESS to 'recognise' the
> > NULL
> > > value and add up the rest of the fileds?
> > >
> > > =([211 Service Enquiries]+[Reception Services]+[Wrong Number]+[Hang Up /
> > > Hoax / Nuisance])
> > >
> > > TIA
> > > --
> > > Sue Compelling
> >
> >
> >
.
- Follow-Ups:
- Re: Summing when one value is NULL
- From: Sue Compelling
- Re: Summing when one value is NULL
- References:
- Summing when one value is NULL
- From: Sue Compelling
- Re: Summing when one value is NULL
- From: tina
- Re: Summing when one value is NULL
- From: Sue Compelling
- Summing when one value is NULL
- Prev by Date: Re: How to summarize records on one page?
- Next by Date: Re: Report grouped on criteria selection
- Previous by thread: Re: Summing when one value is NULL
- Next by thread: Re: Summing when one value is NULL
- Index(es):
Relevant Pages
|