Comparing todays date -14 days from the date created in the db

G

Guest

Hello everyone

I'm trying to write a query that takes todays date -14 then searches the db for all the emails that have been created in 14 days from todays date

thank
L
 
T

tina

if what you're asking is to get all the records in a table where the value
in a date field is between today and 14 days prior, then try this in the
query's date field criteria:

Between DateAdd("d", -14, Date()) And Date()

hth


Lilly said:
Hello everyone,

I'm trying to write a query that takes todays date -14 then searches the
db for all the emails that have been created in 14 days from todays date.
 

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