- MS Access - Data Export
- MS Access - Data Import
- MS Access - Macros
- MS Access - Built-In Functions
- MS Access - Formatting Reports
- MS Access - Reports Basics
- MS Access - Controls & Properties
- MS Access - Formatting
- MS Access - SQL View
- MS Access - Combo Box
- MS Access - Navigation Form
- MS Access - Modify A Form
- MS Access - Create A Form
- Unmatched Query Wizard
- MS Access - Duplicate Query Wizard
- MS Access - Joins
- MS Access - Summarizing Data
- MS Access - Grouping Data
- MS Access - Indexing
- MS Access - Calculated Expression
- MS Access - Wildcards
- Many-To-Many Relationship
- One-To-Many Relationship
- One-To-One Relationship
- MS Access - Create Relationships
- MS Access - Relating Data
- MS Access - Alternate Criteria
- MS Access - Parameter Queries
- MS Access - Create Queries
- MS Access - Action Queries
- MS Access - Query Criteria
- MS Access - Query Data
- MS Access - Adding Data
- MS Access - Create Tables
- MS Access - Data Types
- MS Access - Create Database
- MS Access - Objects
- MS Access - RDBMS
- MS Access - Overview
- MS Access - Home
MS Access Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MS Access - Action Queries
In MS Access and other DBMS systems, queries can do a lot more than just displaying data, but 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 −
Append
Update
Delete
Make-table
An action query cannot be undone. You should consider making a backup of any tables that you will update by using an update query.
Create an Append Query
You can use an Append Query to retrieve data from one or more tables and add that data to another table. Let us create a new table in which we will add data from the tblEmployees table. This will be temporary table for demo purpose.
Let us call it TempEmployees and this contains the fields as shown in the following screenshot.
In the Tables tab, on the Show Table dialog box, double-cpck on the tblEmployees table and then close the dialog box. Double-cpck on the field you want to be displayed.
Let us run your query to display the data first.
Now let us go back to Query design and select the Append button.
In the Query Type, select the Append option button. This will display the following dialog box.
Select the table name from the drop-down pst and cpck Ok.
In the Query grid, you can see that in the Append To row all the field are selected by default except Address1. This because that Address1 field is not available in the TempEmployee table. So, we need to select the field from the drop-down pst.
Let us look into the Address field.
Let us now run your query and you will see the following confirmation message.
Cpck Yes to confirm your action.
When you open the TempEmployee table, you will see all the data is added from the tblEmployees to the TempEmployee table.
Advertisements