counting records

R

Ross

I have a database containing calibration information for test equipment. I
have two queries, one saying which equipmemt is overdue for calibration, and
one saying which equipment has a month before it's due for calibration. Is
there any way I can take a count of these two seperate queries, and put the
two results onto something like a web page, which I can then have as an
active desktop, which tells me "There are XX items due for calibration, and
there are YY items overdue for calibration"?

A novice wants to know...

Cheers
 
K

KARL DEWEY

You could use a union query. Here is another solution to use a single query.
SELECT Sum(IIf([CalDueDate] < Date()+35 ,1,0)) AS [Calibration Due],
Sum(IIf([CalDueDate] < Date(),1,0)) AS [Calibration Overdue]
FROM [Calibration];
Substitute your own criteria for due and over due.
 
N

NetworkTrade

In addition to Karl's good advice; you can consider the Aggregate
functionality built into Access.

If you have an Access text book - You might want to look up the count
feature - I think it will work in your case. But it is not entirely
intuitive and helps if you have an instruction book....
 

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