Join Adam Wilbert for an in-depth discussion in this video Calculating time intervals, part of Access 2010: Queries in Depth.
Now that we know how to tell Access to return today's date and time, we can use…that information to help obtain query results that are relative to today.…We have two different functions that will return slightly different results…depending on the type of question that we're trying to ask.…The DateAdd function will allow us to specify a time frame such as the past 30…days or within the last year and return records within that timeframe.…The DateDiff function will allow us to find how many days have elapsed between…today and a specific event.…We'll take a look at how we can apply each in our queries with some real world examples.…
First let's take a look at the DateAdd function.…We'll go to the Create menu and in Query Design and we'll add our table Orders.…Go ahead and say Close to the Show Table window and in the first field let's…just put in the Field for today's date, date().…Now let's add a DateAdd function.…In the next field we'll right-click and say Build.…We'll go into the Functions, the Built- In Functions, and the Date/Time category.…
- 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.