I've been working on this for about an hour and have a mistake in the code--the error I keep receiving is that it does not recognize the field name TypeCrasstab as a valid field name or expression. The calculation commands are to display percentages for each field calculated from a crosstab query in place.
The crosstab query has the column headings: Type, TotalofAllocation, Aurora, PMFI, PMFII and WCMRT.
The code I have thus far is as follows:
I'm sure I made a stupid mistake...can someone please point it out?
Thanks!
The crosstab query has the column headings: Type, TotalofAllocation, Aurora, PMFI, PMFII and WCMRT.
The code I have thus far is as follows:
Code:
SELECT [TypeCrosstab]
, TypeCorsstab.aurora
, CInt([aurora]/TotalofAllocation)*100,
TypeCrosstab.PMFI
, CInt([PMFI]/TotalofAllocation)*100,
TypeCrosstab.PMFII
, CInt([PMFII]/TotalofAllocation)*100,
TypeCrosstab.WCMRT
, CInt([WCMRT]/TotalofAllocation)*100
FROM [TypeCrosstab]
I'm sure I made a stupid mistake...can someone please point it out?
Thanks!