Churchy LaFemme
Board Regular
- Joined
- Sep 22, 2010
- Messages
- 135
Having trouble and maybe because I've overreaching.
I want a Yes/No column based on checking for (or excluding) values from three columns.
IFF([Geography]="Canada" And [Level]="Intern" Or [Level]="Trainee" Or [Level]="Associate" And [Rating]="Five" Or [Rating]="Four","Fasttrack","Review")
My guess is that Access wants to work the two ANDs first. But I'm not sure. This goes a little better when I do <> for the conditions and switch the truepart with the falsepart.
I can do it with one error: the last condition in one of the ands will be ignored. In the example above, either "Associate" or "Five" would be ignored.
I can trick it a little bit by adding a nonsense value after the And. (e.g., And [Level]="Nonsense" or [Level]="Intern" ...."
But the trick only gets me perfect results for one field.
Will Access go through field by field and return a result for only the rows where all each of the OR conditions for that row is met?
I want a Yes/No column based on checking for (or excluding) values from three columns.
IFF([Geography]="Canada" And [Level]="Intern" Or [Level]="Trainee" Or [Level]="Associate" And [Rating]="Five" Or [Rating]="Four","Fasttrack","Review")
My guess is that Access wants to work the two ANDs first. But I'm not sure. This goes a little better when I do <> for the conditions and switch the truepart with the falsepart.
I can do it with one error: the last condition in one of the ands will be ignored. In the example above, either "Associate" or "Five" would be ignored.
I can trick it a little bit by adding a nonsense value after the And. (e.g., And [Level]="Nonsense" or [Level]="Intern" ...."
But the trick only gets me perfect results for one field.
Will Access go through field by field and return a result for only the rows where all each of the OR conditions for that row is met?