"Get Access queries to ask questions of your database. The more you ask, the more answers you get..."
What are Access queries? Well the simple answer is "Access, I have a question for you!" and it goes off and finds the answer. In other words, a query is simply an instruction or request for a report.The language it uses to communicate and ask that question of your data is known as SQL (Structured Query Language) and uses this SQL query syntax to provide answers very quickly indeed. The advantage with Microsoft Access database queries however, is that there is no requirement to learn the language at all as it provides a user-friendly screen (known as QBE - Query By Example grid). For the more technical and 'die hard' out there,
please review the SQL query syntax article.
There are many types and variations of an Access database query starting with the simple SELECT query to the more advanced query including ACTION and multi-join queries. For those new to queries or wish to refresh your memory, let's start with
how to build and query Access database objects.
Setting criteria and filtering your data is one of the main objectives of a query. This next link will go into more detail of
looking at more examples and techniques of setting criteria
and start to provide a good knowledge base to give you the confidence in understanding the syntax and the specific data types which some criteria belong.

Calculating in a query allows you to create additional fields to enhance reports further. Please review
how to perform calculations using formulae and functions
to understand the syntax, rules and the tools available in assisting the building process.At some point, you may wish to view data as summary values instead. In a query, you can show data in either detail or summary view but not normally both together. The process of
creating groups and totals queries
will demonstrate the do's and don'ts when applying the correct functions. Access queries provide a large compliment of functions that can be used in not only a query but a form, report and other higher level objects. It's not possible to list all of them here but you can view and browse functions using the
Query Expression Builder tool
that also provide other useful buttons and folders to look up and plot.

One of the most commonly used query is being able to bring tables together and join them creating a relationship. This suddenly opens up the power of queries and starts to provide true flexible reporting.There are different types of joins that can be invoked and we start by showing you
how to create a join in a query and understand the rules
when links are broken, when you change a join type and the impact of stand alone tables in a query. As you become more comfortable with the principles and practices of writing Access queries, you will start to want to investigate the more advanced query. Listed in the table below are articles on each of the additional query objects that may be of interest.
Access queries are the heart of any database as it drives all types of reports, screen enquiries, data manipulation and controls data integrity. Spend the time learning this topic well and it will pay dividends in the long term. Note: You can download the database file of your version to test the examples explained and illustrated throughout this website.
Return from Access Queries to About Access Databases home page
|