RE: Crosstab Reports
- From: KARL DEWEY <KARLDEWEY@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 4 Oct 2007 13:01:00 -0700
If your Ind table has all then another query is not necessary. See how I
used that table.
TRANSFORM First([qryTaxCreditsUNION ALL].TCAmount) AS FirstOfTCAmount1
SELECT [qryTaxCreditsUNION ALL].SponsorName, [qryTaxCreditsUNION ALL].Fund,
Ind.Ind, [qryTaxCreditsUNION ALL].Indsort2, [qryTaxCreditsUNION
ALL].DealExpr1, [qryTaxCreditsUNION ALL].DealID
FROM Ind LEFT JOIN [qryTaxCreditsUNION ALL] ON Ind.Ind = [qryTaxCreditsUNION
ALL].Ind
GROUP BY [qryTaxCreditsUNION ALL].SponsorName, [qryTaxCreditsUNION
ALL].Fund, Ind.Ind, [qryTaxCreditsUNION ALL].Indsort2, [qryTaxCreditsUNION
ALL].DealExpr1, [qryTaxCreditsUNION ALL].DealID
ORDER BY [qryTaxCreditsUNION ALL].SponsorName, [qryTaxCreditsUNION
ALL].Fund, [qryTaxCreditsUNION ALL].Indsort2
PIVOT [qryTaxCreditsUNION ALL].YearID;
--
KARL DEWEY
Build a little - Test a little
"NoviceAccessUser-Melanie" wrote:
Kar, I also have an Ind table with the following fields: Ind, InsSort2,.
IndSort3.
I wasn't sure if I needed to create a query including this table.
"KARL DEWEY" wrote:
Roger Dodger.
If you post your crosstab SQL I will put it together for you.
--
KARL DEWEY
Build a little - Test a little
"NoviceAccessUser-Melanie" wrote:
Karl, I'm not quite sure how to get the totals query. Let me back track a
little bit more. The crosstab query is built from a Union query of 5-6 select
queries for each 'Ind'.Then I create the Union query to put them all in 1
table. From that table, I run the crosstab query which has the fields that I
have listed from my original posting. Do I run a Totals query on the Union
query that has all the combined entries?
"KARL DEWEY" wrote:
Create a Totals query on the 'Ind' so it will list all. In the design view
of your crosstab query add the totals and left join it to the other table on
field Ind. Use the Ind field of the totals query as the row heading to
display all Ind's.
--
KARL DEWEY
Build a little - Test a little
"NoviceAccessUser-Melanie" wrote:
I am trying to create a Crosstab report where I would like the detail row
headings to be the same for all my groupings. I found the Help About for
'Creating Crosstab Reports' but the last 2 steps are very unclear to me. My
crosstab query looks like this:
Field Total Crosstab Sort
Sponsor Group By Row Heading Asc
Fund Group By Row Heading Asc
Ind Group By Row Heading
YearID Group By Column Heading
Deal Group By Row Heading
Amount First Value
In a normal report, Detail lines for each Ind will appear only if there is
an actual value for that line. I would like to force the label for each Ind
to appear on the report even if there is not value.
The way I understand the 'Create a Crosstab report' Help screen, by
placing the labels in page header this would force those labels to display.
It doesn't sound right to me. I know I am completely reading this wrong.
Can someone please, please help me and tell me where I am going wrong. I
really appreciate the help.
Regards.
- Follow-Ups:
- RE: Crosstab Reports
- From: NoviceAccessUser-Melanie
- RE: Crosstab Reports
- References:
- RE: Crosstab Reports
- From: KARL DEWEY
- RE: Crosstab Reports
- Prev by Date: Re: Report help
- Next by Date: Re: Top Counts
- Previous by thread: RE: Crosstab Reports
- Next by thread: RE: Crosstab Reports
- Index(es):
Relevant Pages
|