Hi all -
I've been poking around for something that will help me formulate an expression for this, and I've found some things that are very close, but not close enough for direct application...
I expect someone will tell me if I'm going about the the completely wrong way, I am looking for the simplest solution...
Here goes: We've got a tutor training program with 3 levels. If the tutor attends 10 training sessions and meets with students for 25 hours per level, they move up one. So 10 Level 1 training sessions plus 25 or more hours means Level 1, 10 Level 2 training sessions plus 50 or more hours means level 2, 10 Level 3 training session plus 75 or more hours means level 3.
I think that a SWITCH statement in either a query or report control will do what I want, but the syntax eludes me. (I was originally thinking nested IIF statements, but some searching here gave me the indication that it could be less complicated with a SWITCH - but see below for the truth of that!)
I have a query already that counts up the training sessions grouped by level. How do I apply a grouping within a SWITCH statement? Is it even possible?
Here's my first test:
But I get a syntax error telling me I must have put a comma in the wrong place...
My ultimate goal is to generate a report that shows how many face to face hours a tutor has accumulated, how many training sessions completed in each level, and then display a calculated indicator telling what level the tutor has reached.
I currently have a report that shows the first two bits of this using a base report of the tutors by name with two sub-reports (generated by query). I'm in the process of puzzling how to add the level indicator to the report... If someone can think of a better way to accomplish the task, I'm always open to suggestions!
Thanks in advance...
I've been poking around for something that will help me formulate an expression for this, and I've found some things that are very close, but not close enough for direct application...
I expect someone will tell me if I'm going about the the completely wrong way, I am looking for the simplest solution...
Here goes: We've got a tutor training program with 3 levels. If the tutor attends 10 training sessions and meets with students for 25 hours per level, they move up one. So 10 Level 1 training sessions plus 25 or more hours means Level 1, 10 Level 2 training sessions plus 50 or more hours means level 2, 10 Level 3 training session plus 75 or more hours means level 3.
I think that a SWITCH statement in either a query or report control will do what I want, but the syntax eludes me. (I was originally thinking nested IIF statements, but some searching here gave me the indication that it could be less complicated with a SWITCH - but see below for the truth of that!)
I have a query already that counts up the training sessions grouped by level. How do I apply a grouping within a SWITCH statement? Is it even possible?
Here's my first test:
Code:
= SWITCH([rptSUBCountTutorIndivSessions].Report![CountOfTotal Time] =BETWEEN 25 AND 49 AND [rptSUBCountTutorTraining].Report![Level] =1 AND [rptSUBCountTutorTraining].Report![CountOfAttended] =10, "Level 1",_[rptSUBCountTutorIndivSessions].Report![CountOfTotal Time] =BETWEEN 50 AND 74 AND [rptSUBCountTutorTraining].Report![Level] =2 AND [rptSUBCountTutorTraining].Report![CountOfAttended] =10, "Level 2",_[rptSUBCountTutorIndivSessions].Report![CountOfTotal Time] >75 AND [rptSUBCountTutorTraining].Report![Level] =3 AND [rptSUBCountTutorTraining].Report![CountOfAttended] =10, "Level 3",_TRUE, "No Level")
But I get a syntax error telling me I must have put a comma in the wrong place...

My ultimate goal is to generate a report that shows how many face to face hours a tutor has accumulated, how many training sessions completed in each level, and then display a calculated indicator telling what level the tutor has reached.
I currently have a report that shows the first two bits of this using a base report of the tutors by name with two sub-reports (generated by query). I'm in the process of puzzling how to add the level indicator to the report... If someone can think of a better way to accomplish the task, I'm always open to suggestions!

Thanks in advance...