Chapter 12: Keeping Your Information Accurate


Chapter at a Glance

image from book

image from book
Create a lookup list, page 348. Prevent database problems, page 364. Restrict data by using validation rules, page 345. Restrict the type of data in a field, page 334.

image from book

In This Chapter, You Will Learn To:

  • image from book Restrict the type and amount of data in a field.

  • image from book Specify the format of data in a field.

  • image from book Restrict data by using validation rules.

  • image from book Create a simple or multi-column lookup list.

  • image from book Update information in a table.

  • image from book Delete information from a table.

  • image from book Prevent database problems.

Depending on how much information you have and how organized you are, you might compare a database to an old shoebox or to a file cabinet, into which you toss items such as photographs, bills, receipts, and a variety of other paperwork for later retrieval. However, neither a shoebox nor a file cabinet restricts anything other than the physical size of what you can place in it or imposes any order on its content. It is up to you to decide what you store there and to organize it properly so that you can find it when you next need it.

When you create a database by using Microsoft Office Access 2007, you can set properties that restrict what can be entered and impose order on the database contents, thereby helping you to keep the database organized and useful. You would not, for example, want employees to enter text into a price field, or to enter a long text description in a field when a simple “yes” or “no” answer would work best.

To ensure the ongoing accuracy of a database, you can create and run action queries that quickly update information or delete selected records from a table. You could, for example, increase the price of all products in one category by a certain percentage, or remove all the elements of a specific product line. This type of updating is easy to do with an action query. Not only does using a query save time, but it helps to avoid errors.

In this chapter, you will restrict the type, amount, and format of data allowed in a field, and create a list from which a database user can choose a specific option. Then you will create and run an update query and a delete query.

See Also Do you need only a quick refresher on the topics in this chapter? See the Quick Reference entries at the beginning of this book.

Important 

Before you can use the practice files in this chapter, you need to install them from the book’s companion CD to their default location. See “Using the Book’s CD” at the beginning of this book for more information. image from book

Troubleshooting 

Graphics and operating system-related instructions in this book reflect the Windows Vista user interface. If your computer is running Microsoft Windows XP and you experience trouble following the instructions as written, please refer to the “Information for Readers Running Windows XP” section at the beginning of this book.



2007 Microsoft Office System Step by Step
2007 MicrosoftВ® Office System Step by Step
ISBN: 0735622787
EAN: 2147483647
Year: 2004
Pages: 231

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net