Counts

C

Chipgiii

I want to generate a report: I want to count blank cells. The data has a
date and a repair date (separate columns). What I would like to do is count
the number of blank repair dates (this reflects the amount of lights, in this
case, that have not been replaced). I then want to divide that by the fixed
number of total lights in the greenhouse so I can tell each week, or month
the percentage of lights needing repair in a report. I am a real novice user
simplicity is a must.
 
A

Arvin Meyer [MVP]

You can write a query like:

SELECT tblMyData.RepairDateField, Sum(1) AS FieldCount
FROM tblMyData
GROUP BY tblMyData.RepairDateField
HAVING (((tblMyData.RepairDateField) Is Null));

Then use that query's result your in report calculation.
 

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