G
ghostman via AccessMonster.com
i have this SQL on my query that counts the number of trainees (attendees) on
each Training Session (TSID)...it shows the right numbers..but when it comes
to counting the number of NO-SHOWS (failed to attend), it shows the same
number as the number of attendees. (I have 2 NO SHOWS on my record)
can someone have a look to the code and tell me why the NO SHOW field is not
counting the right number and suggest at solution. im not familiar with SQL.
Thanks!
SQL:
SELECT Count([Training Records].TraineeID) AS CountOfTraineeID, [Training
Records].TSID, Count([Training Records].NoShow) AS CountOfNoShow, [Training
Sessions].ModuleName, [Training Sessions].SessionDate, [Training Sessions].
SessionTimeFrom, [Training Sessions].SessionTimeTo, [Training Sessions].
SessionVenue, [Training Sessions].InstructorID
FROM [Training Records] INNER JOIN [Training Sessions] ON [Training Records].
TSID = [Training Sessions].TSID
GROUP BY [Training Records].TSID, [Training Sessions].ModuleName, [Training
Sessions].SessionDate, [Training Sessions].SessionTimeFrom, [Training
Sessions].SessionTimeTo, [Training Sessions].SessionVenue, [Training Sessions]
.InstructorID
HAVING (((Count([Training Records].NoShow))=True));
each Training Session (TSID)...it shows the right numbers..but when it comes
to counting the number of NO-SHOWS (failed to attend), it shows the same
number as the number of attendees. (I have 2 NO SHOWS on my record)
can someone have a look to the code and tell me why the NO SHOW field is not
counting the right number and suggest at solution. im not familiar with SQL.
Thanks!
SQL:
SELECT Count([Training Records].TraineeID) AS CountOfTraineeID, [Training
Records].TSID, Count([Training Records].NoShow) AS CountOfNoShow, [Training
Sessions].ModuleName, [Training Sessions].SessionDate, [Training Sessions].
SessionTimeFrom, [Training Sessions].SessionTimeTo, [Training Sessions].
SessionVenue, [Training Sessions].InstructorID
FROM [Training Records] INNER JOIN [Training Sessions] ON [Training Records].
TSID = [Training Sessions].TSID
GROUP BY [Training Records].TSID, [Training Sessions].ModuleName, [Training
Sessions].SessionDate, [Training Sessions].SessionTimeFrom, [Training
Sessions].SessionTimeTo, [Training Sessions].SessionVenue, [Training Sessions]
.InstructorID
HAVING (((Count([Training Records].NoShow))=True));