change a null value to zero

T

tommyguitfiddle

when my query runs I end up with fields that have a null value (they are
blank). my function will not work because it needs a zero quantity to add it
to another feild. Is there some sort of expression that can change that for
me?
 
J

Jeff Boyce

In a query, for a "field",
YourNewField: Nz([YourFieldName],0)
will convert a Null in [YourFieldName] to 0

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
T

tommyguitfiddle

Thanks Jeff, that did the trick.

Jeff Boyce said:
In a query, for a "field",
YourNewField: Nz([YourFieldName],0)
will convert a Null in [YourFieldName] to 0

Regards

Jeff Boyce
Microsoft Office/Access MVP

tommyguitfiddle said:
when my query runs I end up with fields that have a null value (they are
blank). my function will not work because it needs a zero quantity to add
it
to another feild. Is there some sort of expression that can change that
for
me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top