From the course: Access 2016 Essential Training
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating flexible queries with parameter requests
From the course: Access 2016 Essential Training
Creating flexible queries with parameter requests
- Sometimes you'll want to create a query framwork that answers many variations on the same question. Instead of hard coding your queries to use the exact same criteria every time they're run, you can instead ask the user when it's run for the criteria then. This is called a parameter request and they're another very useful tool to have when building out your databases. Let's start by creating a very simple query here in the Designer, and I'm going to pull in data from our Guests table. Let's go ahead and close the Show Table window and I'm going to pull down the FirstName and LastName field, and also the Country just by double-clicking on each of these here. Now we've seen how we can specify a criteria that looks for a specific value. So for instance, if I come down here into Country and type in France here, and if I were to run it, we can see that there are a total of five guests that come from France. Let's go ahead and switch back into Design View. Now if we were to save 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
-
-
-
-
-
-
-
(Locked)
Understanding queries3m 10s
-
Creating queries with the Simple Query Wizard3m 58s
-
(Locked)
Building queries in Design view9m 23s
-
(Locked)
Establishing constraints with criteria5m 28s
-
(Locked)
Specifying criteria with wildcards4m 16s
-
(Locked)
Leveraging multiple criteria with AND and OR statements6m 7s
-
(Locked)
Filtering with mathematical comparisons3m 41s
-
(Locked)
Creating flexible queries with parameter requests5m 7s
-
Building expressions7m 26s
-
(Locked)
Obtaining summary statistics7m 3s
-
(Locked)
Challenge: Creating queries42s
-
(Locked)
Solution: Creating queries4m 38s
-
(Locked)
-
-
-
-
-
-
-
-