Date Paramater projected out 18 months

G

Guest

Hi I would like my users to enter two dates for example.
Enter Start Date: 2/7/2006
Enter End Date: 2/28/2006
however I want the resolts to give you the start date and end date projected
out 18 months so basicly it would return the records between 8/7/2007 to
8/28/2007.
This is what I tried but it does not work.
Between DateAdd('m',+18,Date()) And DateAdd('m',+18,Date())
 
G

Guest

Your use of DateAdd is just a little off.

DateAdd("m",18,Date())

m needs double quotes. You don't really need the + sign. Also your Between
statement won't return anything as both sides are the same. Assuming a
parameter query, you need is something like:

Between DateAdd('m',+18,[Enter Start Date]) And DateAdd('m',+18,[Enter End
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

Similar Threads

Excel Help with dates 2
calculated date field criteria... 7
Query Help 5
Date Expressions & Calculations 3
Using Between with General Date format 3
Date lookup in Table 2
Date parameter 3
problem query 2

Top