By Richard Rost 2 years ago
Use the Switch Function as an Alternative to Nested IIFs
Learn how to use the Switch function as an alternative to multiple nested IIF functions in your Microsoft Access databases.
Shannon from Chicago IL (a Gold Member) asks: I have a few query statements that are super long because they are IIF functions with multiple nested options. Is there any way to shorten that down so it's not so complicated?
I'll show you how to create a global function to calculate family size with a Select Case VBA statement. This is so that you don't have to copy your Switch function to multiple places.
Silver Members and up get access to view Extended Cut videos, when available. 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 register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
IIF Function: https://599cd.com/IIF
Microsoft Access, switch function, select case statement
Subscribe to Switch Function
Get notifications when this page is updated