If you don't want to touch the original query, you can create a new query
based on the original one. Add all the fields from the first query to the
Fields line in the second query. Then adjust any that might be blank that
should be zero as follows:
Change this:
qryStatsBookingsBreakdown_Crosstab.FNB
to this:
nz(qryStatsBookingsBreakdown_Crosstab.FNB,0)
--
Daryl S
:
Whoops... Here we go:
SELECT tblTrainingSession.dateStartDate, tblTrainingSession.dateEndDate,
suptblCourse.txtCourse, suptblLevel.txtLevelAbbreviation,
tblClientContact.txtCompany, tblFacilitator.txtName, suptblCity.txtCity,
suptblSuburbs.txtSuburb, tblTrainingSession.txtVenue,
tblTrainingSession.numRoom, tblTrainingSession.numSeatsAvailable,
qryStatsBookingsBreakdown_Crosstab.FNB,
qryStatsBookingsBreakdown_Crosstab.FRCC,
qryStatsBookingsBreakdown_Crosstab.MOM,
qryStatsBookingsBreakdown_Crosstab.RMB,
qryStatsBookingsBreakdown_Crosstab.NON,
qryStatsBookingsBreakdown_Crosstab.[Total Of CountOfnumTrainingSessionID],
[Total Of CountOfnumTrainingSessionID]/[numSeatsAvailable] AS
PercentageBooked, qryStatsAttendanceBreakdown_Crosstab.FNB,
qryStatsAttendanceBreakdown_Crosstab.FRCC,
qryStatsAttendanceBreakdown_Crosstab.MOM,
qryStatsAttendanceBreakdown_Crosstab.RMB,
qryStatsAttendanceBreakdown_Crosstab.NON,
qryStatsAttendanceBreakdown_Crosstab.[Total Of CountOfnumAttended], [Total Of
CountOfnumAttended]/[Total Of CountOfnumTrainingSessionID] AS TurnoutRate,
[Total Of CountOfnumAttended]/[numSeatsAvailable] AS Capacity,
[numSeatsAvailable]-[Total Of CountOfnumTrainingSessionID] AS SeatsRemaining
FROM suptblSuburbs RIGHT JOIN (suptblCity RIGHT JOIN (tblFacilitator RIGHT
JOIN (tblClientContact RIGHT JOIN (suptblLevel RIGHT JOIN (suptblCourse RIGHT
JOIN (qryStatsAttendanceBreakdown_Crosstab RIGHT JOIN
(qryStatsBookingsBreakdown_Crosstab RIGHT JOIN tblTrainingSession ON
qryStatsBookingsBreakdown_Crosstab.numTrainingSessionID =
tblTrainingSession.autTrainingSessionID) ON
qryStatsAttendanceBreakdown_Crosstab.numTrainingSessionID =
tblTrainingSession.autTrainingSessionID) ON suptblCourse.autCourseID =
tblTrainingSession.numCourse) ON suptblLevel.autLevelID =
tblTrainingSession.numLevel) ON tblClientContact.autClientID =
tblTrainingSession.numClient) ON tblFacilitator.autFacilitatorID =
tblTrainingSession.numFacilitator) ON suptblCity.autCityID =
tblTrainingSession.numCity) ON suptblSuburbs.autSuburbID =
tblTrainingSession.numSuburb
WHERE (((tblTrainingSession.blnCurrentTraining)=No))
ORDER BY tblTrainingSession.dateStartDate, tblTrainingSession.dateEndDate;
:
Hi,
I have a query with loads of tables and crosstabs. Its basically a stats
report.
My problem is that sometimes there are cells that are blank but i dont want
that. I'd prefer it to reflect as a zero. how do i do that?
Er, im no sql boffen but im guessing you are going to ask for that so here
it is. LOL Please dont reply in sql language as i wouldnt know what to do
with it
Ta