
Now we're asked to select column headings. Select the field by clicking on it on the left, then click the top arrow. Now we can select which fields we want to be row headings.
Microsoft access 2013 tutorial forms how to#
So, we're going to select Books, just so you we can show you how to do a crosstab query. In order to perform a crosstab query, you must have a table or query with at least three numeric, date, or text fields.

This is very important for you to remember going forward. If you select a table which has no data, you'll get this message: Select a table or query (if you already have performed a query) that contains the fields that you want for the crosstab query. Once again, go to the Query Wizard by clicking the Create tab:Ĭlick on Crosstab Query Wizard, then click OK. Let's show you how to do it so you can get a good visualization. Your query now appears in the Navigation Pane:Ī crosstab query takes rows (or records) of data and transforms them into columns. This is just an example to show you how easy it is. We already have an Author query, so maybe we'd have created a query to find page numbers in books, cover price, or any other information. The next window (pictured above) asks us to name the query, then we can either open the query or modify the design. In the snapshot above, we selected Author from the left (it's no longer there), and pushed the top arrow button. Select "Table: Books" from the Tables/Queries drop-down box, if it's not already selected. Select Simple Query Wizard, then click OK. Once you click the Query Wizard, this dialogue box will open: To do this, click the Create tab on the ribbon. To find the authors, we're going to run a query to find them. If we had fifty columns of data, along with hundreds of rows, it could get overwhelming. Now, let's say we want to see all the authors that we have in our collection, and that's the only data we want to see. Our database will store a book collection. The tables we created as examples are simple tables that aren't overloaded with fields (columns) and rows (records), but in a real database, this wouldn't be the case.Īs you can see, for our database, we've decided to create tables for books. So, let's say that you want to find a certain type of data within a table.

You ask them a question regarding your data, and they bring you the answer.Īs we said, the query is your errand boy. Queries are the "errand boys" of Access 2013. In this section, we're going to learn about these four queries and how to complete them using the wizard. The types of queries we're going to talk about in this section are the types you'll find in the Query Wizard. Let's keep it simple so you get comfortable with queries and going more in-depth is as easy as putting Cheese Whiz on a cracker. There are many types and variations of queries in Access. Of course, you can also use a query to supply data to a report. In addition, they can automate data management tasks and review changes before you make those changes permanent.

Queries can also filter data, perform calculations, and summarize data. Using a query can make it quicker because you can ask specific questions about the data in your database that would be hard or too time consuming to answer by looking through your data. If you want to review, add, or change data in your database, you can use a query. In this article, we're going to go more in depth and talk about queries.
