From the course: Access 2016: Queries
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Sort dates chronologically
From the course: Access 2016: Queries
Sort dates chronologically
- [Voiceover] When using the format function to alter the way our date values are presented, it converts our date values into text strings. Sometimes this doesn't have any consequences on the presentation of your data, unless, of course, you want to sort your data chronologically instead of alphabetically. When you want to present your data as text, but still sort it numerically, you might need to get creative with your query design. Let's take a look at an example of this. I've currently got our ordered details query up that we created earlier in the course. This is a query where we took the quantity of each product ordered, and multiplied it by the price here as unit price. To get the total price for each of our orders. Let's go ahead and build a query off using the Wizard. I'm going to go to the create tab, and go into the query Wizard. We're going to use the simple query Wizard, and say okay. Now because I've currently got this selected here, it's automatically choosing this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Dates as serial numbers4m 52s
-
(Locked)
Select a range of dates or times3m 10s
-
(Locked)
Date and time functions4m 42s
-
(Locked)
Format dates5m 9s
-
(Locked)
Sort dates chronologically5m 26s
-
(Locked)
Obtain today's date2m 9s
-
(Locked)
Calculate elapsed time with DateDiff()4m 43s
-
(Locked)
Calculate time intervals with DateAdd()4m
-
(Locked)
Challenge: Expand order details30s
-
(Locked)
Solution: Expand order details5m 12s
-
-
-
-
-
-