This should still be possible. It would help if you provided some table and
field names and SQL of your crosstab.

Signature
Duane Hookom
Microsoft Access MVP
> Duane - thanks for the reply. I actually tried that - in a query, hooked
> these two definition tables up to the datatable, and then hoped to use them
[quoted text clipped - 19 lines]
> > > I would like the report to include all possible values for both the gender
> > > field and outcome (pass, fail) even if there are not any . Any ideas?
Again, thanks Duane. Here is what I have:
the main data table is actually a query that combines some basic
demographica data with outcomes for a particular set of "tests" (physical
exam, medical exam, etc for police recruits). I want to create a report that
summarizes the outcomes by gender. Thus, how many females passed each exam,
how many males. As indicated before, I would like to show a value of "0",
lets say for women, if no women took the exam. Or, lets say, 0 in the fail
for women if they all passed the physical exam.
So, the main data table is named: Qry: Merit and Score Reports
The two definition tables are: tblGender which has values of Male and Female
in the Gender field; and tblOutcomes with has Pass and Fail in the Outcomes
field.
The gender field in the tblGenders table is connected to the "gender" field
in the data query and tblOutcomes is connected to a field named Exam_Med
I hope that helps. Here is the sql:
TRANSFORM Count(tblOutcomes.OUTCOME) AS [Count]
SELECT tblGenders.GENDER
FROM ([QRY: MERIT AND SCORE REPORTS] INNER JOIN tblGenders ON [QRY: MERIT
AND SCORE REPORTS].GENDER = tblGenders.GENDER) INNER JOIN tblOutcomes ON
[QRY: MERIT AND SCORE REPORTS].EXAM_MED = tblOutcomes.OUTCOME
GROUP BY tblGenders.GENDER
PIVOT tblOutcomes.OUTCOME;
Any assistance with this would be greatly appreciated! Best wishes,
> This should still be possible. It would help if you provided some table and
> field names and SQL of your crosstab.
[quoted text clipped - 22 lines]
> > > > I would like the report to include all possible values for both the gender
> > > > field and outcome (pass, fail) even if there are not any . Any ideas?
Duane Hookom - 15 Aug 2008 17:46 GMT
I don't see the results of the cartesian query in your crosstab as suggested
in my first reply.
-- qcarGenderOutcomes
SELECT Gender, Outcome
FROM tblGenders, tblOutcomes;
Then use qcarGenderOutcomes as a source in your crosstab and set the links
to you other query to include all the records from qcarGenderOutcomes.

Signature
Duane Hookom
Microsoft Access MVP
> Again, thanks Duane. Here is what I have:
>
[quoted text clipped - 52 lines]
> > > > > I would like the report to include all possible values for both the gender
> > > > > field and outcome (pass, fail) even if there are not any . Any ideas?