Hi All,
I am working on a database that is being used to track Guaranteed Investment Certificates. I have designed a crosstab query that pulls financial company names down the left side, has months across the top and it calculates the dollar amounts in the grid. It tells me the amounts by each company. Almost Perfect.
However, there are years worth of amounts that are being calculated and I need just the amounts for the next 12 months (not for merely the current year or all years). The amounts are maturity amounts for the GICs and I need the results of the query to show me the totals for the next 12 months starting with the current month. So, most times this will result in parts of two years being displayed. I've used functions that calculate future dates but I'm running into problems with this particular structure as it isn't one column, it's twelve across the page.
I'll continue playing with Date functions but I thought I would toss this out there to see if anyone has any suggestions.
--------
I have since designed a query to base the crosstab query on to get me the date range I need. I used the following criteria for the maturity date field.
Between DateSerial(Year(Date()),Month(Date()),1) And DateSerial(Year(Date()),Month(Date())+12,0)
This does get me the data I want but when I set up the crosstab query and report based on the retrieved information, the column headers always go from Jan to Dec. I want the current month in the first column and then the rest to follow in order. If it is July 2001, the first column should be Jul/01 and the last will be Jun/02. It needs to dynamically change based on the date that the report is run. As always, I will battle on but any suggestions would be greatly appreciated.
Thanks.
PLS
I am working on a database that is being used to track Guaranteed Investment Certificates. I have designed a crosstab query that pulls financial company names down the left side, has months across the top and it calculates the dollar amounts in the grid. It tells me the amounts by each company. Almost Perfect.
However, there are years worth of amounts that are being calculated and I need just the amounts for the next 12 months (not for merely the current year or all years). The amounts are maturity amounts for the GICs and I need the results of the query to show me the totals for the next 12 months starting with the current month. So, most times this will result in parts of two years being displayed. I've used functions that calculate future dates but I'm running into problems with this particular structure as it isn't one column, it's twelve across the page.
I'll continue playing with Date functions but I thought I would toss this out there to see if anyone has any suggestions.
--------
I have since designed a query to base the crosstab query on to get me the date range I need. I used the following criteria for the maturity date field.
Between DateSerial(Year(Date()),Month(Date()),1) And DateSerial(Year(Date()),Month(Date())+12,0)
This does get me the data I want but when I set up the crosstab query and report based on the retrieved information, the column headers always go from Jan to Dec. I want the current month in the first column and then the rest to follow in order. If it is July 2001, the first column should be Jul/01 and the last will be Jun/02. It needs to dynamically change based on the date that the report is run. As always, I will battle on but any suggestions would be greatly appreciated.
Thanks.
PLS