Date Queries

G

Guest

In my table, I have a date field called Appointment Date which is used in the underlying parameter query
When the user enter a date it should show all dates between 7 to 15 days of the date the user entered
Ex: If the user entered 4/9/2004 it should show all Appointment dates between 4/16/2004 and 4/24/2004
How could I do this

Thanks in advance!!
 
R

Rick

In the criteria for the AppointmentDate field, enter:
[enterdate]+6 And <[enterdate]+16

Before this will work, right-click in the area where your tables are shown.
select "parameters" and enter the following:

Parameter Data Type
enterdate Date/Time



Rick

Shaji said:
In my table, I have a date field called Appointment Date which is used in
the underlying parameter query.
When the user enter a date it should show all dates between 7 to 15 days of the date the user entered.
Ex: If the user entered 4/9/2004 it should show all Appointment dates
between 4/16/2004 and 4/24/2004.
 
J

John Vinson

In my table, I have a date field called Appointment Date which is used in the underlying parameter query.
When the user enter a date it should show all dates between 7 to 15 days of the date the user entered.
Ex: If the user entered 4/9/2004 it should show all Appointment dates between 4/16/2004 and 4/24/2004.
How could I do this?

Thanks in advance!!!

BETWEEN DateAdd("d", 7, Date()) AND DateAdd("d", 15, Date())

as a criterion.
 

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