|
||||
|
By Richard Rost ![]() ![]() ![]() 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 an Extended Cut of this video. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!
|
Learn MoreFREE Access Beginner Level 1 Free TemplatesTechHelp Free Templates |
ResourcesMailing List - Get Emails When New Videos Released! Questions?Please feel free to post your questions or comments below or submit them via the TechHelp page. |