ORIGINAL THREAD:
I have a report based on a crosstab query, with rows as "month" and columns as employee sales dollars for that month. I am trying to shade the highest value in each month row. The shading is not hard, but I dont know how to construct the code (have tried dmax function) when trying to find the max of column fields in each row. Have tried the dmax function, DMax("[joe]" "[sally], ... etc but cant figure out how to make an array out of the column field names. Perhaps there is an easier way. All good help appreciated. 1st reply was from dhookum, who asked for SQL view of my crosstab query:
HERE IS THE SQL VIEW OF MY CROSSTAB QUERY:
TRANSFORM Sum(TBLSALES.SALESDOLLARS) AS SumOfSALESDOLLARS
SELECT TBLSALES.MONTH
FROM TBLSALES
GROUP BY TBLSALES.MONTH
PIVOT TBLSALES.EMPLOYEE;
employees is the column header in the crosstab. If DHookum or anyone else might have suggestions, they are much appreciated.
I have a report based on a crosstab query, with rows as "month" and columns as employee sales dollars for that month. I am trying to shade the highest value in each month row. The shading is not hard, but I dont know how to construct the code (have tried dmax function) when trying to find the max of column fields in each row. Have tried the dmax function, DMax("[joe]" "[sally], ... etc but cant figure out how to make an array out of the column field names. Perhaps there is an easier way. All good help appreciated. 1st reply was from dhookum, who asked for SQL view of my crosstab query:
HERE IS THE SQL VIEW OF MY CROSSTAB QUERY:
TRANSFORM Sum(TBLSALES.SALESDOLLARS) AS SumOfSALESDOLLARS
SELECT TBLSALES.MONTH
FROM TBLSALES
GROUP BY TBLSALES.MONTH
PIVOT TBLSALES.EMPLOYEE;
employees is the column header in the crosstab. If DHookum or anyone else might have suggestions, they are much appreciated.