In this movie, Adam demonstrates the use of another Program Flow function called Switch(). The Switch() function uses paired expression-return arguments in a chain. When evaluating the function, Access checks if the first expression is true, and if it is, returns the corresponding value. If not, the system continues down the chain to the next expression-return pair.
- [Voiceover] Within the Program Flow category of functions…within the Expression builder,…There's another function called Switch.…The Switch function is similar to IIF…in that it allows Access to return various responses…depending on the results of an evaluated expression.…The difference between IIF and switch…is that the switch function includes multiple…expression and return pairs,…in a sort of decision tree that only branches…in the false direction.…In other words, Access reads through the function…and returns the first true condition that it happens upon.…If the condition evaluates to false,…Access proceeds to the next condition.…Let's take a look at an example.…
Let's suppose that we have a recognition program…that assigns different levels or rewards…at different sales milestones.…We want to find out how our team members rank…within the recognition program.…Now we've got this query here called…Employee Lifetime Sales Complete…that we created earlier in the course.…You might remember that it's displaying the employee ID,…
- Creating a query with the wizard
- Defining query criteria
- Using comparison and wildcards in criteria
- Working with joins
- Creating parameter queries
- Using the built-in functions in Access
- Summarizing data
- Aggregating records with totals
- Working with dates
- Creating alternative queries: unmatched, crosstab, and more
- Writing queries with SQL
Skill Level Intermediate
1. Introduction to Access Queries
2. Creating Simple Select Queries
3. Creating Parameter Queries
4. Use the Built-In Functions
5. Aggregating Records with a Totals Query
6. Working with Dates in Queries
7. Understanding Program Flow Functions
8. Alternative Query Types
9. Writing Queries with Structured Query Language
Explore the basics of SQL5m 59s
10. Useful Query Tricks
- 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.