Join Adam Wilbert for an in-depth discussion in this video Using the Switch function, part of Access 2010: Queries in Depth.
Within the Program Flow category of functions in the Expression Builder is…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.…It does this by using matched pairs of expressions and values.…We have exprA and if that's true we return valueA.…If the exprA is False, we'll move on down the line to exprB and evaluate it.…In this way, Switch only branches in the false direction.…
In other words, Access only returns a value if the function is true.…If it's not, it moves on down the line.…If the condition evaluates to false at the very end, Access returns a null…value or a blank cell.…So let's take a look at an example of how we can apply this.…In this example, we want to take a look at each employee's total lifetime…sales with the Two Trees Olive Oil Company as part of our rewards and…recognition program.…Let's open up our Chapter 6 custom group, and we'll open this…qry_TotalSales query.…
- 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
Access 2010 Power Shortcutswith Alicia Katz Pollock3h 43m 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.