Count items over 30 days old

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
 
J

Jerry Whittle

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

Top