MISSING ZEROS IN A QUERY

W

William

I have a query that returns 50 counties in the first column. In the second
column, the query returns a count of a two-letter code (ET). In counties
where there are no ETs, the field in the count column is blank instead of a
zero. I need it be a zero. Why is the field blank and what can I do to have
the query return zero?
 
W

William

Thanks for this. I am enough of a beginner, however, that I need a little
more explicit directions. Where does Nz([fieldname],0) actually go?
--
William


S.Clark said:
Implement Nz() to force the null to a zero.

test: Nz([fieldname],0)

William said:
I have a query that returns 50 counties in the first column. In the second
column, the query returns a count of a two-letter code (ET). In counties
where there are no ETs, the field in the count column is blank instead of a
zero. I need it be a zero. Why is the field blank and what can I do to have
the query return zero?
 
G

Golfinray

You would put that in a new column of your query and name it whatever you
want like this
Line with zeroes: nz([the name of the field])

William said:
Thanks for this. I am enough of a beginner, however, that I need a little
more explicit directions. Where does Nz([fieldname],0) actually go?
--
William


S.Clark said:
Implement Nz() to force the null to a zero.

test: Nz([fieldname],0)

William said:
I have a query that returns 50 counties in the first column. In the second
column, the query returns a count of a two-letter code (ET). In counties
where there are no ETs, the field in the count column is blank instead of a
zero. I need it be a zero. Why is the field blank and what can I do to have
the query return zero?
 
W

William

Thanks!!
--
William


Golfinray said:
You would put that in a new column of your query and name it whatever you
want like this
Line with zeroes: nz([the name of the field])

William said:
Thanks for this. I am enough of a beginner, however, that I need a little
more explicit directions. Where does Nz([fieldname],0) actually go?
--
William


S.Clark said:
Implement Nz() to force the null to a zero.

test: Nz([fieldname],0)

:

I have a query that returns 50 counties in the first column. In the second
column, the query returns a count of a two-letter code (ET). In counties
where there are no ETs, the field in the count column is blank instead of a
zero. I need it be a zero. Why is the field blank and what can I do to have
the query return zero?
 

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