D
David Chavez
I have a crosstab report and I want the report to display
a fixed number of columns. My problem is if these column
have no data then I get an error. This is the query I
have created.
TRANSFORM Val(Nz(Sum([PDAEX]),0)) AS SumOfPDAEXPYTD
SELECT DirectLAE2.CompanyName, DirectLAE2.State,
Year.Year2, Sum(DirectLAE2.PDAEX) AS [Total Of PDAEXPYTD]
FROM DirectLAE2 LEFT JOIN [Year] ON
DirectLAE2.AccYr1=Year.Year1
GROUP BY DirectLAE2.CompanyName, DirectLAE2.State,
Year.Year2
PIVOT DirectLAE2.ANSTMTLINE;
a fixed number of columns. My problem is if these column
have no data then I get an error. This is the query I
have created.
TRANSFORM Val(Nz(Sum([PDAEX]),0)) AS SumOfPDAEXPYTD
SELECT DirectLAE2.CompanyName, DirectLAE2.State,
Year.Year2, Sum(DirectLAE2.PDAEX) AS [Total Of PDAEXPYTD]
FROM DirectLAE2 LEFT JOIN [Year] ON
DirectLAE2.AccYr1=Year.Year1
GROUP BY DirectLAE2.CompanyName, DirectLAE2.State,
Year.Year2
PIVOT DirectLAE2.ANSTMTLINE;