Date querie

F

Fred

I need to know how to build a querie that can search 3
days before and 3 days after todays date. It will be used
in a date column. Is there a way to do this? Thanks for
any help.
 
V

Van T. Dinh

SELECT *
FROM YourTable
WHERE DateField
Between DateAdd("d", -3, Date())
And DateAdd("d", 3, 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