You can use an expression with nested IIF function calls e.g. to update the
value if criteria A or B are met but leave the value unchanged otherwise:
UPDATE YourTable
SET Field1 = IIF(<criterion A>, 1, IIF(,<criterion B>, 2, Field1));
where <criterion A> and ,<criterion B> are expressions evaluating to TRUE or
FALSE.
However, with a large number of criteria this gets very unwieldy and it
would be better to write a VBA function into which values could be passed as
arguments, and which returns the value to which the field is to be updated.
Be sure to back up the table before undertaking any large scale update
operations like this!
Ken Sheridan
Stafford, England