MarkGardner
Registered User.
- Local time
- Yesterday, 18:08
- Joined
- Mar 27, 2008
- Messages
- 43
I am trying to build a filter in a query that will allow me to filter dates between a range, ie. Mar 1 through Mar 31. I am putting it as part of a button to select the month and print a report.
Each year will have different data and so I want to have it select between the beginning of the month and the end of the month of whatever year I am working in without the year.
I have found that the following works well in the design mode criteria, but it does not exclude the year:
Between # 3/1 # And # 3/31#
It returns the correct data for the current year and forces the criteria to read:
Between # 3/1/2009 " And # 3/31/2009 "
The question now is:
Is there a Universal symbol that I can use to insert in the year spot to get it to search between the dates that I want no matter what year it is so that I do not have to modify the the query each year? I have tried using the * , but it does not allow me use it. Is there something else that I can use?
Thank you.
Mark Gardner
Each year will have different data and so I want to have it select between the beginning of the month and the end of the month of whatever year I am working in without the year.
I have found that the following works well in the design mode criteria, but it does not exclude the year:
Between # 3/1 # And # 3/31#
It returns the correct data for the current year and forces the criteria to read:
Between # 3/1/2009 " And # 3/31/2009 "
The question now is:
Is there a Universal symbol that I can use to insert in the year spot to get it to search between the dates that I want no matter what year it is so that I do not have to modify the the query each year? I have tried using the * , but it does not allow me use it. Is there something else that I can use?
Thank you.
Mark Gardner