look up rejected items

A

Annette

I’m new to access and I’m trying to make a query to look up rejected items.
I’m doing this by date so in the criteria I have “Between [Enter Start Date]
And [Enter End Date]†it is working fine. I need to show items that are
rejected. If there isn’t any rejected we have entered a 0. What do I need
to put in the criteria to show the number of rejected items? Thank you in
advance.
 
K

KARL DEWEY

This is a whole lot of guessing on my part as I do not have your data
structure --
SELECT Product, Sum([Rejected]) AS Total_Rejects
FROM YourTable
WHERE YourDateField Between [Enter Start Date] And [Enter End Date]
GROUP BY Product
HAVING Sum([Rejected]) >0;
 

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