N
new2access via AccessMonster.com
I have this code on my database that show certain records based on a training
modules completed selected by the user from a drop down list.
SELECT [Training Sessions].ModuleName, [Training Sessions].SessionDate,
[Training Sessions].SessionTimeFrom, [Training Sessions].SessionTimeTo,
[Training Sessions].SessionVenue, [Training Records].TraineeID, (forms!
[frmTraining Modules Completed by Trainees]!SelectModule) AS Expr1, [Training
Records].NoShow
FROM [Training Sessions] INNER JOIN [Training Records] ON [Training Sessions].
TSID = [Training Records].TSID
WHERE ((([Training Sessions].ModuleName)=([forms]![frmTraining Modules
Completed by Trainees]![SelectModule]))) OR (((([forms]![frmTraining Modules
Completed by Trainees]![SelectModule])) Is Null));
How can i do it in reverse? i tried this code:
SELECT qryTrainingModules.ModuleName, qryTrainingModules.SessionDate,
qryTrainingModules.TraineeID, Trainees.LastName, Trainees.FirstName, Trainees.
JobTitle, Trainees.ContractorName, qryTrainingModules.NoShow, Trainees.
Language
FROM Trainees INNER JOIN qryTrainingModules ON Trainees.TraineeID =
qryTrainingModules.TraineeID
WHERE (((qryTrainingModules.NoShow)<>False));
This shows a report of trainees who failed to attend the training course,
which is also needed on the report since they have to take the course again.
Also, i need to display on this report the trainees who doesn't have training
history so they can be enrolled. And that's my problem, its not showing
trainees with no training history.
My database has the following tables:
[Trainees]
- TraineeID (PK)
- FirstName
- LastName
- etc...
[Training Records]
- ID (PK)
- TraineeID
- TSID
- NoShow
[Training Sessions]
- TSID (PK)
- ModuleName
- SessionDate
- SessionTime
[tblModules]
- ModuleName (PK)
modules completed selected by the user from a drop down list.
SELECT [Training Sessions].ModuleName, [Training Sessions].SessionDate,
[Training Sessions].SessionTimeFrom, [Training Sessions].SessionTimeTo,
[Training Sessions].SessionVenue, [Training Records].TraineeID, (forms!
[frmTraining Modules Completed by Trainees]!SelectModule) AS Expr1, [Training
Records].NoShow
FROM [Training Sessions] INNER JOIN [Training Records] ON [Training Sessions].
TSID = [Training Records].TSID
WHERE ((([Training Sessions].ModuleName)=([forms]![frmTraining Modules
Completed by Trainees]![SelectModule]))) OR (((([forms]![frmTraining Modules
Completed by Trainees]![SelectModule])) Is Null));
How can i do it in reverse? i tried this code:
SELECT qryTrainingModules.ModuleName, qryTrainingModules.SessionDate,
qryTrainingModules.TraineeID, Trainees.LastName, Trainees.FirstName, Trainees.
JobTitle, Trainees.ContractorName, qryTrainingModules.NoShow, Trainees.
Language
FROM Trainees INNER JOIN qryTrainingModules ON Trainees.TraineeID =
qryTrainingModules.TraineeID
WHERE (((qryTrainingModules.NoShow)<>False));
This shows a report of trainees who failed to attend the training course,
which is also needed on the report since they have to take the course again.
Also, i need to display on this report the trainees who doesn't have training
history so they can be enrolled. And that's my problem, its not showing
trainees with no training history.
My database has the following tables:
[Trainees]
- TraineeID (PK)
- FirstName
- LastName
- etc...
[Training Records]
- ID (PK)
- TraineeID
- TSID
- NoShow
[Training Sessions]
- TSID (PK)
- ModuleName
- SessionDate
- SessionTime
[tblModules]
- ModuleName (PK)