Pharcyde
Arriba Arriba!!!
- Local time
- Today, 20:28
- Joined
- Sep 4, 2003
- Messages
- 116
I'm trying to run a query to work out whether a student has passed their assessments or not. Testing on a student who has passed Exam, Report and XX, the following query returns incomplete.
acc1: IIf([Ass-Assessments]!AssessmentID="Exam" And [Result]="Pass" And [Ass-Assessments]!AssessmentID="Report" And [Result]="Pass" And [Ass-Assessments]!AssessmentID="XX" And [Result]="Pass","Completed","Incomplete")
=-=-=-=-=-=-=-=-
But, if I re-rig the assessments table, so the student has only taken (and passed) Exam, and then amend the query to:
acc2: IIf([Ass-Assessments]!AssessmentID="Exam" And [Result]="Pass"","Completed","Incomplete")
then it correctly says Completed. I can see its not the best piece of coding in the world but why doesnt it work!?
Thanks loads, Lee
acc1: IIf([Ass-Assessments]!AssessmentID="Exam" And [Result]="Pass" And [Ass-Assessments]!AssessmentID="Report" And [Result]="Pass" And [Ass-Assessments]!AssessmentID="XX" And [Result]="Pass","Completed","Incomplete")
=-=-=-=-=-=-=-=-
But, if I re-rig the assessments table, so the student has only taken (and passed) Exam, and then amend the query to:
acc2: IIf([Ass-Assessments]!AssessmentID="Exam" And [Result]="Pass"","Completed","Incomplete")
then it correctly says Completed. I can see its not the best piece of coding in the world but why doesnt it work!?
Thanks loads, Lee