What is an action query and when would you use one?

What is an action query and when would you use one?

An action query is a query that makes changes to many records in just one operation. There are four types of action queries: delete, update, append, and make-table.

This topic provides examples of:

Delete query

Update query

Append query

Make-table query

Delete query

Deletes a group of records from one or more tables. For example, you could use a delete query to remove products that are discontinued or for which there are no orders. With delete queries, you always delete entire records, not just selected fields within records.

For information on creating delete queries, click .

Return to top

Update query

Makes global changes to a group of records in one or more tables. For example, you can raise prices by 10 percent for all dairy products, or you can raise salaries by 5 percent for the people within a certain job category. With an update query, you can change data in existing tables.

For information on creating update queries, click .

Return to top

Append query

Adds a group of records from one or more tables to the end of one or more tables. For example, suppose that you acquire some new customers and a database containing a table of information on those customers. To avoid typing all this information in, you'd like to append it to your Customers table. Append queries are also helpful for:

For information on creating append queries, click .

Return to top

Make-table query

Creates a new table from all or part of the data in one or more tables. Make-table queries are helpful for:

For information on creating make-table queries, click .

Return to top