Didn't you add 365 days to Date1? So how come you say it's not giving the right results?Ok. I made a mistake typing all that.
Here is the attached access file.
I have a table (Table 1) containing fields Allotment Number and Date1
I query the table and the query has 4 fields Allotment Number and Date1, Date2 and Date3. (Query 1)
Where Date2=Date1+180
and
Date3=Date1+365
I query this query for find dates between any [start date] and [End Date]
(QUery 2)
I do this by writing Between [Enter Start Date] And [Enter End Date]
as the criteria in fields Date1, Date2 and Date3, one below the other so that I do the OR operation.
Now when I run the query, and say for example I type Start Date as 20/09/2009 and end date as 20/10/2010. I get the following result
Allotment Number Date1 Date2 Date3
A001 15/10/2009 13/04/2010 15/10/2010
A020 20/11/2009 19/05/2010 20/11/2010
A121 25/09/2009 24/03/2010 25/09/2010
A221 20/03/2010 16/09/2010 20/03/2011
A552 28/03/2010 24/10/2010 28/03/2011
Now this result contains dates that were not part of the interval entered.
for eg 28/03/2011.
What you want to achieve is what is eluding me.