简体   繁体   中英

How do I create a report using a crosstab query?

When I try to use the report wizard on a crosstab query, none of the fields show up. I tried googling this, but unfortunately, I'm having no luck finding something that works for me. Here is my crosstab sql code. This report will be pulled up from a form.

PARAMETERS [Forms]![SSIReports]![txtEndDate] DateTime, [Forms]![SSIReports]![txtStartDate] DateTime;
TRANSFORM Max(MnthlyAmalgamated.NumberOf) AS MaxOfNumberOf
SELECT MnthlyAmalgamated.Type
FROM MnthlyAmalgamated
GROUP BY MnthlyAmalgamated.Type
PIVOT MnthlyAmalgamated.Project;

I realize the issue here is the variable columns, but I have no clue what to do about it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM