I am a basic Access 2010 user and am not familiar with VBA but I try my best to figure things out. My problem is I have a crosstab query that has columns that will change. I created a report and used the following SQL code to include all possible fields for columns in my report. The problem is the report has too much information. Is there away that I could create a dynamic report that will leave null values off of the report and the labels for the fields will change with the changes in the cross tab query.
I apologize if I didn't explain this in a way that is understandable. Here is the SQL code:
TRANSFORM Sum(QryExhibitOnebeforeTotals.ALLOCATED_COST) AS SumOfALLOCATED_COST
SELECT QryExhibitOnebeforeTotals.PROP_UNIT, QryExhibitOnebeforeTotals.ASSET_CLASS, QryExhibitOnebeforeTotals.Property_Unit.DESCRIPTIO N, Sum(QryExhibitOnebeforeTotals.ALLOCATED_COST) AS [Total Of ALLOCATED_COST]
FROM QryExhibitOnebeforeTotals
GROUP BY QryExhibitOnebeforeTotals.PROP_UNIT, QryExhibitOnebeforeTotals.ASSET_CLASS, QryExhibitOnebeforeTotals.Property_Unit.DESCRIPTIO N
PIVOT QryExhibitOnebeforeTotals.LIFE
IN (0000,0100,0300,0500,0600,0700,0900,1000,1200,1500 ,2000,2750,3150,3900,4000);
Thank you for your help.
Joanne