Working with Tables 1 of 5. Working with Tables 2 of 5

Preview:

Citation preview

Working with Tables 1 of 5

Working with Tables 2 of 5

Working with Tables 3 of 5

Working with Tables 4 of 5

Working with Tables 5 of 5

Working with Forms 1 of 3

Working with Forms 2 of 3

Working with Forms 3 of 3

Working with Queries 1 of 3

Working with Queries 2 of 3

Working with Queries 3 of 3

Types of queries you can create in Microsoft Access

1. Select queries

2. Parameter queries

3. Crosstab queries

4. Action queries (make table,delete, update, append queries)

5. SQL queries (union, pass-through, data-definition, subquery)

What is a select query and when would you use one?

A select query is the most common type of query. It retrieves data from one or more tables

and displays the results in a datasheet where you can update the records (with some

restrictions). You can also use a select query to group records and calculate sums, counts,

averages, and other types of totals

What is a parameter query and when would you use one?

A parameter query is a query that when run displays its own dialog box prompting you for information, such as criteria for retrieving records or a value you want to insert in a field. You can design the query to prompt yyou for more than one piece of information; for example, you can design it to prompt you for two dates. Microsoft Access can then retrieve all records that fall between those two dates.

Parameter queries are also handy when used as the basis for forms, reports, and data access pages. For example, you can create a monthly earnings report based on a parameter query. When you print the report, Microsoft Access displays a dialog box asking for the month that you want the report to cover. You enter a month and Microsoft Access prints the appropriate report.

What is a crosstab query and when would you use one?

A crosstab query displays summarized values (sums, counts, and averages) from one field in a table and groups them by one set of facts listed down the left side of the datasheet and

another set of facts listed across the top of the datasheet.For information on creating a crosstab query with a wizard,

click . For information on creating a crosstab query from scratch, click .

Tip   You can display crosstab data without creating a separate query in your database either by using the PivotTable Wizard in a form or by creating a PivotTable list in a data access page. With a PivotTable form or PivotTable list, you can change row and column headings on demand to analyze your data in different ways. For information on creating a PivotTable form

Working with Reports 1 of 3

Working with Reports 2 of 3

Working with Reports 3 of 3

Recommended