Create Action Queries in Microsoft Access
Queries within a DBMS system can do more than display answers to the questions you ask. They can actually perform various actions on the data in your database. Action queries are queries that can add, change, or delete multiple records at one time. The added benefit is that you can preview the query results in Access before you run it. Microsoft Access provides 4 different types of Action Queries: Make-Table, Append, Update, and Delete. This article deals with Make-Table queries.
Steps
- Start Microsoft Access and open your database
- Click on the Queries tab of your database.
- Click on the New button and then select Design View to start creating a query in Design view.
- Choose the tables or other queries you wish to query
- Choose the fields from the table/query you want.
- Just like normal queries, you will often have to specify a criterion in your query to get the results you want.
- Run the query to make sure your query contains the results are you are looking for.
- Now, you need to change the type of query this is. In the middle of the screen, click the Query type button.
- Change to Make-Table.
- Specify the name of the new table and if it is going to be created in the database you are currently working from, or another database.
- If you are creating the table for a separate database, you will have to specify the location of it.
- Run the query.
- Because you running an action query that makes changes to your overall database structure, Microsoft Access will ask if you want to cancel the operation.
- Click Yes to close the dialog box, create the new table and return to Query Design View.
- Save your query, and you're done.
Tips
- Novices to action queries should preview their query before changing it to an action query.
Things You'll Need
- Microsoft Access
- A database
- Data to consolidate into a new table