Count items over 30 days old

  • Thread starter Thread starter lmossolle
  • Start date Start date
L

lmossolle

I have a date field "daterecieved" i would like to query for items over 30
days old where a completed field is null. Please assist.

Thanks
 
SELECT *
FROM YourTable
WHERE daterecieved < Date() – 30
AND completed Is Null ;

Or in the query design view put the following in the criteria under the
daterecieved field:
< Date() – 30

And Null in the criteria under the completed field.

If Access puts double quotes " around either criteria, something is wrong.
 

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

Similar Threads

Over 30 Days 6
30 day old 6
Excel Colour code dates 1
New Query 2
minimize repeating query criteria & generating monthly YTD totals 1
Criteria for totals query 2
Trying not to run multiple queries 4
Greater than 30 days old 3

Back
Top