|
||||||
|
IIF Function By Richard Rost 3 years ago IIF Function - Immediate IF in Microsoft Access In this video, I'm going to show you how to use the IIF function, which stands for Immediate IF, to display one value if a condition evaluates to TRUE and a different value if it evaluates to FALSE. This is like having an If/Then statement in your queries and forms. I'll show you how to display "Past Due" if an order is overdue. We'll display "High Credit" on credit limits over $1000. We'll make a query showing the country each customer is in, substituting "United States" for NULL values. Jayvon from Oakland, California (a Gold Member) asks: I have a form that I would like to display "past due" next to the due date. Is there any way I could do this without programming? I know you say VBA is easy, and I'm learning with your lessons, but I need this quick. Thanks! MembersI'll show you how to use Nested IIF functions to determine a student's letter grade from a test score (90=A, 80=B, 70=C, etc.). I'll remind you about the Switch function which is better. I'll show you how to use the IIF function in your VB code. We'll make "Past Due" change to Red, "Due Soon" in Yellow, and "Current" in Green.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today! Links
|
||||||||||||||||
| |||
Keywords: TechHelp Access iif function multiple criteria, multiple arguments, three conditions, between two numbers, student letter grades from score PermaLink IIF Function in Microsoft Access |