Greetings everyone,
I apologise if this is a wall of text. I'll try to keep it brief.
I took on a project recently to move a heavily automated Excel workbook I'd created to Access. The project is reporting on waste data throughout the city.
I have everything set up, but am having great difficulty with dynamic reports. Nearly all of the existing reports in Excel are dynamic - they report on a waste type (e.g. residual) and a variable month range depending on how much data the requester wants to see (e.g. April - October 2014). The Excel tables are arranged like this (this isn't how my schema looks):
Month 1 Month 2 Month 3 Month 4
Residual 500 300 211 344 etc...
I created a dynamic crosstab query which presented the information just as I'd like it. Then I realised that dynamic crosstab queries don't work in reports/forms unless you specify the column headers. Rather than do a ton of inline SQL, I put the result of the crosstab into a recordset, inserted it into a table, and displayed that on the report. Joy of joys, it worked..
Except...when I delete and recreate the table, the report I use to display it doesn't recognise any new columns as it's still using the (now deleted) table for its data, and asks me for them as parameters (monthly values per month). :banghead:
So, good people, what is the best way to get around this please? If I can get this to work, I can finally start churning out my reports. I'm new to Access and frustrated by encountering so many roadblocks with variable column recordsets.
Many Thanks!!
Spirals
I apologise if this is a wall of text. I'll try to keep it brief.
I took on a project recently to move a heavily automated Excel workbook I'd created to Access. The project is reporting on waste data throughout the city.
I have everything set up, but am having great difficulty with dynamic reports. Nearly all of the existing reports in Excel are dynamic - they report on a waste type (e.g. residual) and a variable month range depending on how much data the requester wants to see (e.g. April - October 2014). The Excel tables are arranged like this (this isn't how my schema looks):
Month 1 Month 2 Month 3 Month 4
Residual 500 300 211 344 etc...
I created a dynamic crosstab query which presented the information just as I'd like it. Then I realised that dynamic crosstab queries don't work in reports/forms unless you specify the column headers. Rather than do a ton of inline SQL, I put the result of the crosstab into a recordset, inserted it into a table, and displayed that on the report. Joy of joys, it worked..
Except...when I delete and recreate the table, the report I use to display it doesn't recognise any new columns as it's still using the (now deleted) table for its data, and asks me for them as parameters (monthly values per month). :banghead:
So, good people, what is the best way to get around this please? If I can get this to work, I can finally start churning out my reports. I'm new to Access and frustrated by encountering so many roadblocks with variable column recordsets.
Many Thanks!!
Spirals
Last edited: