Searching for Date Range

  • Thread starter Thread starter jtshockey
  • Start date Start date
J

jtshockey

I'd like to set up a function to allow the user to search for files
based on a due date. I would like it so that the user can search for
files due in the following three weeks of the current date. Does
anyone know how I would be able to set this up?
 
Use

BETWEEN DateAdd("ww", -3, Date) AND Date

as the criteria for your date field.
 
I'd like to set up a function to allow the user to search for files
based on a due date. I would like it so that the user can search for
files due in the following three weeks of the current date. Does
anyone know how I would be able to set this up?

You want dates between today and 3 weeks (21 days) into the future?

Create a query.
As criteria on the [DueDate] field, write:
Between Date() and DateAdd("d",21,[DueDate])
 
I'd like to set up a function to allow the user to search for files
based on a due date. I would like it so that the user can search for
files due in the following three weeks of the current date. Does
anyone know how I would be able to set this up?

You want dates between today and 3 weeks (21 days) into the future?

Create a query.
As criteria on the [DueDate] field, write:
Between Date() and DateAdd("d",21,[DueDate])

Oops. Naughty fingers hitting keys.
Should be:

As criteria on the [DueDate] field, write:
Between Date() and DateAdd("d",21,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

Back
Top