K
klp via AccessMonster.com
I have a query where I want a date range to be entered. I have a field in my
query that is as follows:
Format$([Needs].[Need Date],'mmmm yyyy') - this is as an expression.
For my criteria I have:
Between [Type beginning month and year:] And [Type ending month and year:]
When I put in my date range say May 2005 to June 2005 it brings in the
correct months May and June, but for every year. So I get
May 2005
May 2004
May 1988
June 2006
June 2005
June 2000
It's not recognizing my year. I also have a field in there to format the year:
Year(Needs.[Need Date])*12+DatePart('m',Needs.[Need Date])-1
Where am I going wrong here?
Thanks!
Kim P
query that is as follows:
Format$([Needs].[Need Date],'mmmm yyyy') - this is as an expression.
For my criteria I have:
Between [Type beginning month and year:] And [Type ending month and year:]
When I put in my date range say May 2005 to June 2005 it brings in the
correct months May and June, but for every year. So I get
May 2005
May 2004
May 1988
June 2006
June 2005
June 2000
It's not recognizing my year. I also have a field in there to format the year:
Year(Needs.[Need Date])*12+DatePart('m',Needs.[Need Date])-1
Where am I going wrong here?
Thanks!
Kim P