Hi there!
I have a query which outputs Numberofworkdays as rows. The Numberofworkdays could be between 0-12 but at the moment if there isn't a value between that, then that isn't reflected in the cross tab query.
I need to have the column headings specified as something else (hospital) so i cannot use them. Is there a way to specify rows so they are presented in the results as a '0' even though technically there isn't a value associated with it.
I have a sneeky feeling this will involve me using the criteria property and the Nz function
see attached for illustration
Current query is
TRANSFORM Nz(Count(qry_cardiology1.EpisodeID),0) AS CountOfEpisodeID
SELECT qry_cardiology1.NumberOfWorkDays2
FROM qry_cardiology1
WHERE (((qry_cardiology1.RequestDatetime) Between #11/1/2010# And #11/30/2010#))
GROUP BY qry_cardiology1.NumberOfWorkDays2
PIVOT qry_cardiology1.ReferringHospital In ("Dudley","Walsall","Wolverhampton");
I have a query which outputs Numberofworkdays as rows. The Numberofworkdays could be between 0-12 but at the moment if there isn't a value between that, then that isn't reflected in the cross tab query.
I need to have the column headings specified as something else (hospital) so i cannot use them. Is there a way to specify rows so they are presented in the results as a '0' even though technically there isn't a value associated with it.
I have a sneeky feeling this will involve me using the criteria property and the Nz function
see attached for illustration
Current query is
TRANSFORM Nz(Count(qry_cardiology1.EpisodeID),0) AS CountOfEpisodeID
SELECT qry_cardiology1.NumberOfWorkDays2
FROM qry_cardiology1
WHERE (((qry_cardiology1.RequestDatetime) Between #11/1/2010# And #11/30/2010#))
GROUP BY qry_cardiology1.NumberOfWorkDays2
PIVOT qry_cardiology1.ReferringHospital In ("Dudley","Walsall","Wolverhampton");