Join Adam Wilbert for an in-depth discussion in this video Introducing the conditional IIf function, part of Access 2010: Queries.
In this chapter, we're going to take a look at creating a new function called a…conditional statement.…Conditional statements are one of my favorite features of Access queries.…They allow you to create an automated decision-making process.…They're very flexible and very powerful and they can automate some complex tasks…in a short amount of time.…So let's dig in to see what this is all about.…A conditional statement is an if-then statement.…In Access, we will use the IIf function and yes, there are two I's there.…That's not a typo.…The first I stands for immediate, meaning that this is a function that runs…inside of an SQL statement.…
This is so Access can distinguish between this function and the Visual Basic If routine.…The IIf function has a specific syntax that must be followed.…There are three required arguments.…The expression to evaluate, the piece to return if true, and a piece to return if false.…The first part of our condition is the expression.…Any mathematical expression that evaluates to true or false will work.…
- Naming conventions and best practices
- Working with joins
- Using comparison operators
- Defining criteria for select queries
- Creating parameter queries
- Creating calculated fields
- Working with dates and times
- Using the Expression Builder
- Creating conditional statements
- Making, deleting and appending records
- Building reports
Skill Level Intermediate
1. Creating Queries in Access
2. Creating Simple Select Queries
3. Creating Parameter Queries
Creating a combo box4m 30s
4. Applying Aggregate Calculations (aka Totals Queries)
5. Working with Dates in Queries
6. Understanding Conditional Statements
7. Linking It All Together
8. Alternative Query Types
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.