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!
BONUS FOR MEMBERS:
Silver Members and up get access to an Extended Cut of this video. I'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.
MEMBERS VIDEO:
• IIF Function - Immedia...
BECOME A MEMBER:
/ @599cd
LEARN MORE:
599cd.com/IIF
LINKS:
Access Expert 8: 599cd.com/ACX8
Conditional Formatting: 599cd.com/Conditional
Query Design: 599cd.com/QueryDesign
Calculated Query Fields: 599cd.com/Calculated
Switch Function: 599cd.com/Switch
After Update: 599cd.com/AfterUpdate
On Current Event: 599cd.com/OnCurrent
If Then Statement: 599cd.com/IfThen
Intro to VBA: 599cd.com/IntroVBA
LEARN MORE:
FREE Access Beginner Level 1: 599cd.com/Free1
$1 Access Level 2: 599cd.com/1Dollar
FREE TEMPLATE DOWNLOADS:
TechHelp Free Templates: 599cd.com/THFree
Blank Template: 599cd.com/Blank
Contact Management: 599cd.com/Contacts
Order Entry & Invoicing: 599cd.com/Invoicing
More Access Templates: 599cd.com/AccessTemplates
ADDITIONAL RESOURCES:
Get on my Mailing List: 599cd.com/YTML
TechHelp: 599cd.com/TechHelp
Consulting Help: 599cd.com/Consulting
Twitter: / learningaccess
en.wikipedia.org/wiki/Microso...
products.office.com/en-us/access
microsoft.com/en-us/microsoft...
Email Me: amicron@gmail.com
KEYWORDS:
microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, iif function multiple criteria, multiple arguments, three conditions, between two numbers, student letter grades from score
QUESTIONS:
Please feel free to post your questions or comments below. Thanks.
Негізгі бет IIF Function - Immediate IF in Microsoft Access - If/Then in a Single Function - Conditional
Пікірлер: 37