Article ID: 304355 - Last Review: August 9, 2004 - Revision: 1.1 HOW TO: Convert a Select Query to an Action Query in Access 2000This article was previously published under Q304355 SUMMARY
Action queries are used when you want to perform tasks such as inserting, updating, or deleting records. You can convert an existing select query to an action query by changing its query type. This article describes the different types of action queries and shows you how to change a select query to an action query. An action query is a query that makes changes to or moves many records in just one operation. There are four types of action queries: delete, update, append, and make-table. Delete QueryA delete query deletes a group of records from one or more tables. For example, you can use a delete query to remove products that are discontinued or for which there are no orders.You can use a delete query to delete records from a single table, from multiple tables in a one-to-one relationship, or from multiple tables in a one-to-many relationship, if cascading deletes are enabled. For example, you can use a delete query to delete all customers from Ireland and all their orders. However, if you need to include the "many" table along with the "one" table in order to add criteria, you must run the query twice, because a query cannot delete records from the primary table and the related tables at the same time. For additional information about relationships and designing databases, click the article number below to view the article in the Microsoft Knowledge Base: 288947
(http://support.microsoft.com/kb/288947/EN-US/
)
Where to Find Information About Designing a Database in Access
Important Considerations When Using a Delete Query
Microsoft Access 2000 Help
(
http://office.microsoft.com/assistance/offhelp.aspx)
Update QueryAn 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 additional information about creating update queries, click the "Working with Queries" topic on the Microsoft Access 2000 Help page at the following Microsoft Web site: Microsoft Access 2000 Help
(http://office.microsoft.com/assistance/offhelp.aspx)
Append QueryAn 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, you would like to append it to your Customers table. Append queries are also helpful for:
Microsoft Access 2000 Help
(http://office.microsoft.com/assistance/offhelp.aspx)
Make-Table QueryA 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:
Microsoft Access 2000 Help
(http://office.microsoft.com/assistance/offhelp.aspx)
Converting a Select Query to an Action Query
Changes to the Query Design Grid When Changing Query TypeAfter you change the query type from a select query to an action query, the query design grid will change as follows.
REFERENCESFor more information about creating action queries, click Microsoft Access Help on the
Help menu, type create an action query in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned. You can also view this information of the World Wide Web by clicking the "Working with Queries" topic on the Microsoft Access 2000 Help page at the following Microsoft Web site: Microsoft Access 2000 Help
(http://office.microsoft.com/assistance/offhelp.aspx)
For additional information about creating select queries, click the article number below
to view the article in the Microsoft Knowledge Base:
304361
(http://support.microsoft.com/kb/304361/EN-US/
)
How to Create a Select Query in Microsoft Access
For additional information about creating parameter queries, click the article number below
to view the article in the Microsoft Knowledge Base:
304353
(http://support.microsoft.com/kb/304353/EN-US/
)
How to Create a Parameter Query in Microsoft Access
For additional information about creating crosstab queries , click the article number below
to view the article in the Microsoft Knowledge Base:
304348
(http://support.microsoft.com/kb/304348/EN-US/
)
How to Create a Crosstab Query in Microsoft Access
For additional information about modifying query properties, click the article number below
to view the article in the Microsoft Knowledge Base:
304357
(http://support.microsoft.com/kb/304357/EN-US/
)
How to Modify Query Properties in Microsoft Access
To download a sample Microsoft Access database that contains over 20 query examples, see the following article in the Microsoft Knowledge Base:
207626
(http://support.microsoft.com/kb/207626/EN-US/
)
Access 2000 Sample Queries Available in Download Center
| Article Translations
|
Back to the top
