I have been working on a crosstab query where my text value (not a number) will not return a 0 instead of a null value.
My expression that returns the crosstab value is:
The PropertyType can be "Destroyed" or "Turn Over". Am I setting up the Expr1 wrong?
The SQL for my query is:
I have attached two screen shots. In Jan7b I would like all the null values to show 0 instead of nothing. Is this possible?
My expression that returns the crosstab value is:
Code:
Expr1: Nz(Count(IIf([PropertyType]=" ",0,[PropertyType])))
The PropertyType can be "Destroyed" or "Turn Over". Am I setting up the Expr1 wrong?
The SQL for my query is:
Code:
TRANSFORM Nz(Count(IIf([PropertyType]=" ",0,[PropertyType]))) AS Expr1
SELECT qsites.site
FROM (qryPropertyDetails RIGHT JOIN (qsites LEFT JOIN Detention ON qsites.key = Detention.AppSite) ON qryPropertyDetails.DetentionID = Detention.Key) LEFT JOIN qPropertyType ON qryPropertyDetails.PropertyTypeID = qPropertyType.PropertyTypeID
GROUP BY qsites.site
PIVOT qPropertyType.PropertyType;
I have attached two screen shots. In Jan7b I would like all the null values to show 0 instead of nothing. Is this possible?