Can anybody help with this please? I need to generate zero/null values in a crosstab query where the query is not counting any data. I know about the nz function but I'm not sure where it goes in the query - I've searched the forum and found a few threads but they have not really helped.
Its counting numbers of DPCodes against CompClassTag, if that helps.
Thanks in advance
swifty
Its counting numbers of DPCodes against CompClassTag, if that helps.
Thanks in advance
swifty
Code:
TRANSFORM Count(A1RMMSQRY.DPCode) AS CountOfDPCode
SELECT A1RMMSQRY.CompClassTag
FROM A1RMMSQRY
WHERE (((A1RMMSQRY.SchemeID)=[Forms]![VM_A1_RMMS_Form]![SchemeID]))
GROUP BY A1RMMSQRY.CompClassTag, A1RMMSQRY.SchemeID
PIVOT A1RMMSQRY.DPCode In ("Cat 1","Safe+Cat 1","IMM","Cat 2.1","Cat 2.2","Cat 2.3","Safe+Cat 2.1","Near EOL","Satis","None");