kfschaefer
Registered User.
- Local time
- Today, 15:03
- Joined
- Oct 10, 2008
- Messages
- 58
I am looking for code to create an array or function that will create a list of dates, including future dates based on a date range (Between Date() and DateAdd("M", 60, Date())
I am creating a crosstab query when I need to display future months as column headings for the next 5 years and I do not want to create a table with over 120 fields to handle this. I am looking for a way to do this on the fly. Note the list of months need to adjust every month - this is for Forecasting so the list of months must float accordingly. I have tried various options within the crosstab but it will not display future months only those months that contain date.
Any assistance is greatly appreciated.
I am creating a crosstab query when I need to display future months as column headings for the next 5 years and I do not want to create a table with over 120 fields to handle this. I am looking for a way to do this on the fly. Note the list of months need to adjust every month - this is for Forecasting so the list of months must float accordingly. I have tried various options within the crosstab but it will not display future months only those months that contain date.
Any assistance is greatly appreciated.