gRegulator
Technical User
Hi,
I have created a crosstab query which shows ethnicity as Column header and Disposition as Row Header. It works fine. My only problem is that the ethnicity values are taken from a lookup wizard, so instead of showing up as Aboriginal, Inuit, Other. They show up as 1,2,3. I would like to change the column headings if possible to show the actual meanings, not just the numbers. Here is my code for the query:
Is this possible? Thanks!
I have created a crosstab query which shows ethnicity as Column header and Disposition as Row Header. It works fine. My only problem is that the ethnicity values are taken from a lookup wizard, so instead of showing up as Aboriginal, Inuit, Other. They show up as 1,2,3. I would like to change the column headings if possible to show the actual meanings, not just the numbers. Here is my code for the query:
Code:
PARAMETERS [Forms]![frm_dateparameter_q29]![txtStart] DateTime, [Forms]![frm_dateparameter_q29]![txtEnd] DateTime;
TRANSFORM Count(qry_union_q29_ethnicity_disposition.Start) AS CountOfStart
SELECT qry_union_q29_ethnicity_disposition.ConditionDescription, Count(qry_union_q29_ethnicity_disposition.Start) AS [Total Offenders]
FROM qry_union_q29_ethnicity_disposition
WHERE (((qry_union_q29_ethnicity_disposition.Start) Between [Forms]![frm_dateparameter_q29]![txtStart] And [Forms]![frm_dateparameter_q29]![txtEnd]))
GROUP BY qry_union_q29_ethnicity_disposition.ConditionDescription
PIVOT qry_union_q29_ethnicity_disposition.Ethnicity;
Is this possible? Thanks!