IIF Statement in MS-Access

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

HOW TO USE IIF STATEMENT IN MS-ACCESS

** Using IF Function in MS-Access is represented as IIF (Condition, "True", "False")


This function is used to implement if condition in MS-Access. Just like programming
languages we can use IIF statement in MS-Access to evaluate any expression whether it is
true or false.

Syntax of IIF Statement:


IIF (Condition/Expression, True Statement, False Statement)
Example:
IIF ([Field Name]>=100, "Pass", "Fail")
** Using Multiple IIF condition in MS-Access
We can use multiple IIF statement to evaluate multiple conditions (Nested IIF)
Syntax of Nested IIF Statement:
IIF ([Field Name] ="Nepal", "Nepalese", IIF ([Field Name] ="China", "Chinese", "Not Valid"))
OR
Combining conditions
IIF ([Field Name]>40 AND [Field Name]>40 AND …………., "Pass", "Fail")

You might also like