joolsUK0575
Registered User.
- Local time
- Today, 09:32
- Joined
- May 6, 2004
- Messages
- 49
Hi there
I'm new to the forum and was hoping a kind person out there could help me out with a problem.
Basically I work for a local authority and each week we produce a list of planning applications for our Parish Council's.
Part of the query includes the category used by the ODPM (Office Of Deputy Prime Minister). This category is basically a number. 1 - 5 being Major, 6 - 10 being Minor and 11 - 17 being Other.
I am trying to write an expression which will say that when it is category 1 it is major, 6 minor 13 other etc.
The following expression seemed to work fine on 1 - 5:
Category: IIf([DOE_Cat] like "1", "Major", [DOE_Cat])
It's when I go to to add in a second IIf statement that the trouble starts. I found a post that I hoped would get over my problem but it only added in the number to the new column. I tried the following:
Category: IIf(DOE_Cat] like "1", "Major", [DOE_Cat]) & IIf([DOE_Cat] like "6", "Minor", [DOE_Cat])
Does anyone have any ideas to get it working correctly as it's driving me crackers!!
Thanks
Jools
I'm new to the forum and was hoping a kind person out there could help me out with a problem.
Basically I work for a local authority and each week we produce a list of planning applications for our Parish Council's.
Part of the query includes the category used by the ODPM (Office Of Deputy Prime Minister). This category is basically a number. 1 - 5 being Major, 6 - 10 being Minor and 11 - 17 being Other.
I am trying to write an expression which will say that when it is category 1 it is major, 6 minor 13 other etc.
The following expression seemed to work fine on 1 - 5:
Category: IIf([DOE_Cat] like "1", "Major", [DOE_Cat])
It's when I go to to add in a second IIf statement that the trouble starts. I found a post that I hoped would get over my problem but it only added in the number to the new column. I tried the following:
Category: IIf(DOE_Cat] like "1", "Major", [DOE_Cat]) & IIf([DOE_Cat] like "6", "Minor", [DOE_Cat])
Does anyone have any ideas to get it working correctly as it's driving me crackers!!
Thanks
Jools