Dates in queries

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I am having some trouble in setting up a criteria in my
query.
I have two fields: [date of reply] and [close out date].
This is what I would like to achieve:

When [date of reply] is greater or equal to 14 days from
today's date, and if [close out date] is null, I will have
a return.
Can this be done?

Many Thanks,
Chris.
 
Hi,


What is a "return" ?

SELECT *
FROM somewhere
WHERE existingCriteria AND NOT (

[date of reply] + 14 > Date( ) and [close out date] IS
NULL

)



would return an empty recordset under the described circumstances.


Hoping it may help,
Vanderghast, Access MVP
 

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

Date increment in query 2
The query cannot be completed. 1
query on date 1
Query Criteria 2
Excel Excel Show Countdown Date 7
Excel Message box with days of month & date. 1
date calculation 5
Complex query 0

Back
Top