Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: IIf in an Access Query


Message #1 by "Nigel Parker" <nigel.parker@c...> on Wed, 25 Oct 2000 12:27:17 +0100
I am using this variable assignment in MSAccess97 to convert a code
reference to it's string meaning using the IIf function.
Access doesn't like it, and wont run.
Is it because it is too long, or is something wrong?
Is there a better or more simple way of acheiving the same thing?
Here is the criteria, using the IIf function...

CallNum:IIf ([priority]='1','System Down',"& " IIf([priority]='2','Urgent
Response Required', "&" IIf([priority]='3','Standard Response Required', "
& " IIf([priority]='4','Advice Required', "&" IIF([priority]='5','Call
Dealt With By Desk', "&" IIf([priority]='6','Suspended Call', ''))))))

Thanks for any help offered.

  Return to Index