Dates in queries

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.
 
M

Michel Walsh

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

Top