accessaspire219
Registered User.
- Local time
- Today, 14:45
- Joined
- Jan 16, 2009
- Messages
- 126
I have a database that calculates monthly on hand inventory and YTD on hand inventory. Each month is displayed as 01/2009, 02/2009, 03/2009 ....etc and there is a YTD number e.g. 2009
The above query is a crosstab query in which the employee name is a row heading, period (mm/yyyy and yyyy) are column heading while the actual MIOH is the value.
This query has a criteria in the period which allows the user to input from and two dates to determine the data he wants to view. Currently I use the criteria Between [Start Date] And [End Date] however,with this criteria the year is always left out. Meaning if the criteria is 01/2009 to 05/2009 then the 2009 (YTD) numbers are not displayed. Is there a way in which I can specify the criteria so that it will mean "Between start date and end date AND this year. So that it will also display the year column along with 01/2009, 02/2009, 03/2009, 04/2009 and 05/2009.
Any help is appreciated!
Thanks.
The above query is a crosstab query in which the employee name is a row heading, period (mm/yyyy and yyyy) are column heading while the actual MIOH is the value.
This query has a criteria in the period which allows the user to input from and two dates to determine the data he wants to view. Currently I use the criteria Between [Start Date] And [End Date] however,with this criteria the year is always left out. Meaning if the criteria is 01/2009 to 05/2009 then the 2009 (YTD) numbers are not displayed. Is there a way in which I can specify the criteria so that it will mean "Between start date and end date AND this year. So that it will also display the year column along with 01/2009, 02/2009, 03/2009, 04/2009 and 05/2009.
Any help is appreciated!
Thanks.