Skip to Content
Access Data Analysis Cookbook
book

Access Data Analysis Cookbook

by Ken Bluttman, Wayne S. Freeze
May 2007
Beginner to intermediate
366 pages
8h 43m
English
O'Reilly Media, Inc.
Content preview from Access Data Analysis Cookbook

Chapter 3. Action Queries

There are passive queries and there are action queries. A passive query, such as the standard select, pulls data into a result set, but does not alter any data (either in the source, or by virtue of persisting the returned data past the time the query has been run and left active).

Action queries, on the other hand, can alter source records and persist the returned records indefinitely. A delete query, for example, removes records from source tables—a completely destructive procedure. If the data hasn’t been backed up, it’s gone for good. Update queries also affect source data by changing the existing data. Again, unless the original data is backed up before the operation is carried out, it’s irrecoverable.

Append and make-table queries are types of action queries that do not alter source data but do persist the returned records into permanent results. An append query places returned records into an existing table, and a make-table query places returned records into a new table. We’ll explore all of these types of queries in this chapter.

Running an Update Query

Problem

I need to edit the data in my table. The State field contains two-character acronyms, but I need to change these to the full state names. How can I do this?

Solution

Update Query is one of the types you can select when designing a query. Use the Query → Update Query menu option to prepare the grid.

In Access 2007, create a blank grid using the Ribbon, and select the Update query type in the query ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Access Cookbook

Access Cookbook

Andy Baron, Ken Getz, Paul Litwin
Access Hacks

Access Hacks

Ken Bluttman
Access 2016 For Dummies

Access 2016 For Dummies

Laurie Ulrich Fuller, Ken Cook

Publisher Resources

ISBN: 0596101228Errata Page