Select the product you need help with
How to convert a select query to an action query in Access 2002Article ID: 304354 - View products that this article applies to. This article was previously published under Q304354 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 following article number to view the article in the Microsoft Knowledge Base: 289533 Important Considerations When Using a Delete Query
(http://support.microsoft.com/kb/289533/
)
Where to find information about designing a database in Microsoft Access
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.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:
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:
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.
REFERENCES
For additional information about setting the UniqueRecords property in a delete query, click the following article number to view the article in the Microsoft Knowledge Base:
240098
(http://support.microsoft.com/kb/240098/
)
ACC2000: "Could Not Delete from Specified Tables" Error Message in Delete Query
For 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. For additional information about creating select queries, click the following article number to view the article in the Microsoft Knowledge Base: 304325 For additional information about creating parameter queries, click the article number below
to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/304325/
)
How to create a select query in Access 2002
304352
For additional information about creating crosstab queries , click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/304352/EN-US/
)
HOW TO: Create a Parameter Query in Microsoft Access 2002
304349
(http://support.microsoft.com/kb/304349/
)
How to create a crosstab query in Access 2002
PropertiesArticle ID: 304354 - Last Review: August 25, 2004 - Revision: 3.3
|


Back to the top








