Skip to Content
Microsoft® Access® 2010 24-Hour Trainer
book

Microsoft® Access® 2010 24-Hour Trainer

by Geoffrey L. Griffith, Truitt L. Bradly
June 2011
Beginner
552 pages
14h 54m
English
Wrox
Content preview from Microsoft® Access® 2010 24-Hour Trainer

23

Creating Select Queries

Select queries are the most common type of query used in an Access database. A Select query simply gathers a group of records but does not modify them in any way. Select queries are often used as the record source for forms, reports, and other queries, and in addition, many built-in VBA functions and macros can use Select queries as their record source. Select queries are an everyday part of life in an Access database application.

Single-table queries are the simplest of Select queries. Adding tables to the query, using joins to link one table to another, creates more complex queries by using the power of a relational database. Adding criteria, or parameters, to a query limits the records returned. Queries can also have parameters to serve several purposes: to return single records only, to return a range of records, and to exclude records that meet specific criteria. Access's built-in functions, as well as user-defined functions, can be added to queries by creating a Calculated field.

Writing SQL statements without the assistance of a wizard or the graphical user interface is also permitted in Access using SQL View mode. Writing SQL code directly allows for the greatest amount of control on how the query is formed. In fact, using the SQL View mode is the only way Union queries can be written. Regardless of the method you use to build your Select queries, Access 2010 makes it very simple.

LESSON SETUP

For this lesson you need Access 2010 and the Lesson ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Microsoft® Access® 2010 24-Hour Trainer

Microsoft® Access® 2010 24-Hour Trainer

Geoffrey L. Griffith, Truitt L. Bradly
Microsoft® Access® 2010: Step by Step

Microsoft® Access® 2010: Step by Step

Joan Lambert and Joyce Cox

Publisher Resources

ISBN: 9780470591673Purchase bookExamples