=2,"Internet" Or [Code]=4,"ELS",Form")
Am I close?[/QUOTE]
No.
IIF has three arguments:
A logical expression which evaluates to TRUE or FALSE (where FALSE is
defined as 0, TRUE as anything else)
A value to be returned if it's TRUE
A value to be returned if it's FALSE
You may want to use the Switch() function instead:
=Switch([Code] = 2, "Internet", [Code] = 4, "ELS", True, "Form")
Switch() takes arguments in pairs; the function goes through the
arguments two at a time, and when it first encounters a True
expression as the first of the pair, it returns the value of the
second argument of the pair.
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps