In the last movie we took a look at how we can use the DateAdd function to allow…us to specify a date in the past.…I'm going to go ahead and open up the query that we are working on, and that is…called to qry_RecentOrders.…And if I go ahead and view it in Design View, I'll open up our field and we can…take a look at the Criteria.…So I specify that we want to view order dates that are greater than and then…we're using or DateAdd function to specify the date 30 days ago.…Now if I run this query again, I'll take a look at it, and I know that all of…these orders were placed within the last 30 days, but I don't know exactly how…many days ago that they were placed.…I can use the DateDiff function to tell us that.…
Let's go back into Design View and we're going to create a new calculated field…here and let's do that in the Zoom box.…The name of this field is going to be Days Elapsed.…And the function that we're going to using is DateDiff and this function…is similar to DateAdd.…It requires three arguments.…
Author
Released
9/9/2010- Naming conventions and best practices
- Working with joins and primary keys
- Using comparison operators
- Printing query results
- Creating parameter queries
- Creating calculated fields
- Using the Expression Builder
- Making conditional statements
- Appending queries
- Updating queries
Skill Level Intermediate
Duration
Views
Related Courses
-
Access 2007: Shortcuts
with Alicia Katz Pollock3h 25m Intermediate
-
Introduction
-
Welcome50s
-
-
1. Creating Queries in Access
-
Query basics5m 37s
-
Using the Query Wizard4m 8s
-
-
2. Creating Simple Select Queries
-
Comparison operators3m 42s
-
Printing query results5m 38s
-
3. Creating Parameter Queries
-
4. Creating Calculated Fields
-
Using text4m 6s
-
5. Using the Expression Builder
-
6. Working with Dates in Queries
-
Using the Format function4m 34s
-
Defining today's date2m 53s
-
Working with time intervals3m 15s
-
Using the DateDiff function1m 55s
-
7. Understanding Conditional Statements
-
Using the Switch function3m 43s
-
8. Using Alternate Query Types
-
Using crosstab queries4m 46s
-
Finding duplicate queries2m 11s
-
Finding unmatched queries2m 10s
-
Updating queries2m 57s
-
Deleting queries2m 54s
-
-
Conclusion
-
Goodbye14s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Using the DateDiff function