cover.eps

Access® 2010 For Dummies®

Table of Contents

Introduction

About This Book

Conventions Used in This Book

What You Don’t Have to Read

Foolish Assumptions

How This Book Is Organized

Part I: Basic Training

Part II: Getting It All on the Table

Part III: Data Mania and Management

Part IV: Ask Your Data, and Ye Shall Receive Answers

Part V: Plain and Fancy Reporting

Part VI: More Power to You

Part VII: The Part of Tens

Appendix: Getting Help

Icons Used in This Book

Where to Go from Here

Part I: Basic Training

Chapter 1: Getting to Know Access 2010

What Is Access Good For, Anyway?

Building big databases

Creating databases with multiple tables

Databases with user forms

Databases that require special reporting

What’s New in Access 2010?

New and improved features

Reach out with SharePoint

How Access Works and How You Work with It

Opening Access

Selecting a starting point

Now what?

Chapter 2: Finding Your Way Around Access

Diving Right In

Working with On-Screen Tools in Access

Clicking tabs

Using buttons

The File tab and Quick Access tools

Accessing panes, panels, and context-sensitive tools

Customizing the Access Workspace

Repositioning the Quick Access toolbar

Adding buttons to the Quick Access toolbar

Removing buttons from the Quick Access toolbar

Minimizing the Ribbon

Working with ScreenTips

Mousing Around

Navigating Access with the Alt Key

Chapter 3: Database Basics

Database Lingo

Data, no matter how you pronounce it

Fields of dreams (or data)

Records

Tables

The database

Field Types and Uses

Choosing Between Flat and Relational Databases

Isolationist tables

Tables that mix and mingle

Building a Database

Adding and Removing Tables

One more, please

Oops, I didn’t mean to do that

Part II: Getting It All on the Table

Chapter 4: Keys, Relationships, and Indexes

The Primary Key to Success

The lowdown on primary keys

Creating a primary key

Making Tables Get Along

Rules of relationships

Relationship types

Building Table Relationships

The Relationships window

Table relationships

Indexing for Faster Queries

Create your own index

Adding and removing indexes

Chapter 5: Remodeling Your Data

Opening a Table for Editing

Inserting Records and Fields

Adding a record

Inserting a field

Deleting a field

Modifying Field Content

Name-Calling

Renaming fields

Renaming a table

Turn Uh-Oh! into Yee-Hah!

Chapter 6: What’s Happening Under the Table?

Access Table Settings

Field Data Formats

Text and memo fields

Number and currency fields

Date/time fields

Yes/No fields

Gaining Control of Data Entry

You really need to put a mask on those fields

To require or not to require

Making your data toe the line with validation

Give your fingers a mini vacation by default

Part III: Data Mania and Management

Chapter 7: Creating Data Forms

Generating Forms

Keeping it simple: AutoForm

Granting most wishes: The Form Wizard

Customizing Form Parts

Taking the Layout view

The theme’s the thing

Managing form controls

Chapter 8: Importing and Exporting Data

Retrieving Data from Other Sources

Translating file formats

Importing and linking

Get This Data Out of Here

Export formats

Exporting table or query data

Chapter 9: Editing Data Automatically

Please Read This First!

Creating Consistent Corrections

Using Queries to Automate the Editing Process

Looking for duplicate records

Running the Find Duplicates Query Wizard

Chapter 10: Gather Locally, Share Globally

Access and the Web

Click! Using Hyperlinks in Your Access Database

Adding a hyperlink field to your table

Typing your hyperlinks

Fine tuning your hyperlinks

Testing links

Embedding Web Content into Your Access Forms

Adding hyperlinks to your form

Publishing Your Data to the Web

Publishing your Access tables

Part IV: Ask Your Data, and Ye Shall Receive Answers

Chapter 11: Fast Finding, Filtering, and Sorting Data

Using the Find Command

Finding anything fast

Shifting Find into high gear

Sorting from A to Z or Z to A

Sorting by a single field

Sorting on more than one field

Fast and Furious Filtering

Filtering by a field’s content

Filter by selection

Filter by Form

Unfiltering in a form

Filter by excluding selection

Chapter 12: I Was Just Asking . . . for Answers

Simple (Yet Potent) Filter and Sort Tools

Filter things first

Fact-finding with fun, fast filtering

Here’s the “advanced” part

Select Queries

Solid relationships are the key to getting it all (from your tables)

Running the Query Wizard

Getting Your Feet Wet with Ad Hoc Queries

Adding the finishing touches

Saving the query

Running your query

Chapter 13: I’ll Take These AND Those OR Them

Working with AND and/or OR

Data from here to there

Using multiple levels of AND

Establishing criteria with OR

Combining AND with OR and OR with AND

Chapter 14: Queries That Think Faster Than You

Kissing That Calculator Goodbye via the Total Row

Adding the Total Row to Your Queries

Giving the Total Row a Workout

Organizing things with Group By

Performing sums

Counting, the easy way

Narrowing the results with Where

Creating Your Own Top-Ten List

Choosing the Right Field for the Summary Instruction

Chapter 15: Calculating with Your Data

A Simple Calculation

Complex Calculations

Calculate until you need calculate no more!

Using one calculation in another

Using parameter queries to ask for help

Daisy-chaining your words with text formulas

Expression Builder (Somewhat) to the Rescue

Chapter 16: Flying into Action Queries

Easy Update

Add Records in a Flash

Quick Cleanup

Part V: Plain and Fancy Reporting

Chapter 17: Quick and Not-So-Dirty Automatic Reporting

Fast and Furious Automatic Reporting

Creating a quick, one-table report

Starting the Report Wizard

Previewing Your Report

Zooming in and out and all around

Pop goes the menu

Beauty Is Only Skin (Report) Deep

The Print Options tab

The Page tab

The Columns tab

Chapter 18: Dazzling Report Design

Taking Your Report In for Service

Report Organization

Structural devices

Page breaks

Formatting This, That, and the Other

Adding color

Relocation, relocation, relocation

One size does not fit all

Spaced-out controls

Borderline beauty

Tweaking your text

Sneaking a Peek

Getting a Themes Makeover

Adding More Design Elements

Drawing lines

Pretty as a picture

Chapter 19: Headers and Footers and Groups, Oh My!

A Place for Everything and Everything in Its Place

Layout basics

Sections

Grouping your records

So you want more?

Customizing Properties

Controlling report and page headings

Adjusting individual sections

Itemized adjustments

Chapter 20: Magical Mass Mailings

Massive Mailings with the Label Wizard

Part VI: More Power to You

Chapter 21: Making It All Better with the Analyzer Tools

Convert Your Flat Files to Relational Tables with Analyzer

Record Database Object Details with the Database Documenter

Improve Database Performance without Steroids

Chapter 22: Hello! Creating an Interface to Welcome Database Users

The Comings and Goings of a Navigation Form

Creating a Navigation form

Am I in the Right Place? Testing Navigation Forms

Maintaining the Navigation Form

Edit a Navigation form item

Delete a Navigation Form tab item

Move a Navigation Form item

Displaying the Navigation Form at Startup

Part VII: The Part of Tens

Chapter 23: Ten Common Problems

That’s Just Not Normal

You Type 73.725, but it Changes to 74

The Words They Are A-Changing

Was There and Now It’s Gone

Undo

Search for the missing record

Backup recovery

You Run a Query, but the Results Aren’t What You Expect

The Validation That Never Was

The Slowest Database in Town

Your Database File Is as Big as a Whale

You Get a Mess When Importing Your Spreadsheet

We’re Sorry; Your Database File Is Corrupt

Chapter 24: Ten Uncommon Tips

Document Everything as Though You’ll be Questioned by the FBI

Keep Your Fields as Small as Possible

Use Number Fields for Real Numbers

Validate Your Data

Use Understandable Names to Keep Things Simple

Delete with Great Caution

Back up, Back up, Back up

Think, Think, and Think Again

Get Organized and Stay Organized

There’s No Shame in Asking for Help

Access® 2010 For Dummies®

by Laurie Ulrich Fuller and Ken Cook

WileyTitlePageLogo.eps

About the Authors

Laurie Ulrich Fuller has been writing about and teaching people to use Microsoft Office for more than 20 years. She’s been there through every new version of Access, as Office has evolved to meet the needs of users from all walks of life — from individuals to huge corporations, from growing businesses to non-profit organizations.

In the meantime, Laurie has personally trained more than 10,000 people to make better, more creative use of their computers, has written and co-written 30+ nationally-published books on computers and software — including several titles on Microsoft Office. In the last few years, she’s also created several video training courses, teaching online students to use Microsoft Office and Adobe Photoshop.

Laurie’s own firm, Limehat & Company, offers training and educational materials as well as graphic design, marketing, promotions, and Web-development services. She invites you to contact her with your Office-related questions at help@limehat.com, and to visit her Web site: www.limehat.com.

Ken Cook has built and managed a successful computer consulting business (now called Cook Software Solutions, LLC) since 1990. He began as a trainer — training numerous users (too many to count!) on a variety of software packages — specializing in Microsoft Office. Currently he “dabbles in training” (specializing in online synchronous training) but his main focus is creating expert Microsoft Office solutions and Microsoft Access database solutions for Fortune 500 and small business clients.

Ken is also a published author on Microsoft Excel, having contributed chapters on macros and VBA to Special Edition: Using Excel 2000 and Special Edition: Using Excel 2002 published by Que. Ken also contributed chapters on Microsoft Access to the book How to Do Everything with Office XP published by Osborne, and coauthored the previous version of this book; Access 2007 For Dummies published by Wiley.

Prior to his career in computers, Ken was a Product Manager for Prince Manufacturing, Inc. He is a graduate of Syracuse University with a bachelor’s degree in Marketing. He can be contacted through his Web site (www.kcookpcbiz.com) or by e-mail (ken@kcookpcbiz.com).

Publisher’s Acknowledgments

We’re proud of this book; please send us your comments through our online registration form located at www.dummies.com/register/.

Some of the people who helped bring this book to market include the following:

Acquisitions, Editorial

Senior Project Editor: Paul Levesque

Senior Acquisitions Editor: Steven Hayes

Senior Copy Editor: Barry Childs-Helton

Technical Editor: Eric Legault

Editorial Manager: Leah Cameron

Media Development Assistant Producers: Angela Denny, Josh Frank, Shawn Patrick

Editorial Assistant: Amanda Foxworth

Sr. Editorial Assistant: Cherie Case

Cartoons: Rich Tennant (www.the5thwave.com)

Composition Services

Senior Project Coordinator: Kristie Rees

Layout and Graphics: Ashley Chamberlain, Samantha K. Cherolis, Ronald G. Terry, Christine Williams

Proofreaders: Susan Hobbs, Jessica Kramer

Indexer: Estalita Slivoskey

Publishing and Editorial for Technology Dummies

Richard Swadley, Vice President and Executive Group Publisher

Andy Cummings, Vice President and Publisher

Mary Bednarek, Executive Acquisitions Director

Mary C. Corder, Editorial Director

Publishing for Consumer Dummies

Diane Graves Steele, Vice President and Publisher

Composition Services

Debbie Stailey, Director of Composition Services

Introduction

You’ve picked up this book and are hoping it will teach you to use Microsoft Access 2010. Of course, as the authors, we believe this was a wise decision — or that (at the very least) it was some sort of divine intervention that led you to our pages. We’re quite certain that this is The Book For You — but not just because we wrote it. Rather, we base this conviction on the fact that both of us have been teaching and using Access for a very long time, and we know how to share what we know with our students. That’s right, you’re now one of our students — at least that’s how we feel about you as our reader. Now, we could be wrong here, but that happens so infrequently that we’re hardly considering it. No, the reason you picked up this book is that you want to learn Access, and this is the best book to help you do just that. Really. No kidding.

Of course, being a normal human being, you probably have work to do, and whether or not we’re right about this being The Book For You, you need Access. You need it to organize your data. You need it to store — accessibly, of course — all the information that’s currently spilling out of notebooks, file drawers, your pockets, your glove compartment, everywhere. You need it so you can print out snappy-looking reports that make you look like the genius you are. You need it so you can create cool forms that will help your staff enter all the data you’ve got stacked on their desks — and in a way that lets you know the data was entered properly, so it’s accurate and useful. You need Access so you can find little bits of data out of the huge pool of information you need to store. You just need it.

About This Book

With all the power that Access has (and that it therefore gives you), there comes a small price: complexity. Access isn’t one of those applications you can just sit down and use, “right out of the box.” It’s not scarily difficult or anything, but there’s a lot going on — and you need some guidance, some help, some direction, to really use it and make it sing and dance. And that’s where this book — a “reference for the rest of us” — comes in.

So you’ve picked up this book. Hang on to it. Clutch it to your chest and run gleefully from the store. (Stop and pay for it first, please; we’d never want to encourage you to embark on a life of crime.) And then start reading — whether you begin with Chapter 1 or whether you dive in on your own and start with a particular feature or area of interest that’s been giving you fits. Just read, and then go put Access through its paces.

Conventions Used in This Book

As you work with Access 2010, you’re going to need to tell it to do things. You’ll also find that at times, Access has questions for you, usually in response to your asking it to do something. This book will show you how to talk to Access, and how Access will talk to you. To show the difference between the two sides of that conversation, we format the commands as follows:

This is something you type into the computer.

This is how the computer responds to your command.

Because Access is a Windows program, you don’t just type, type, type — you also mouse around quite a bit. Here are the mouse movements necessary to make Access (and any other Windows program) work:

Click: Position the tip of the mouse pointer (the end of the arrow) on the menu item, button, check box, or whatever else you happen to be aiming at — and then quickly press and release the left mouse button.

Double-click: Position the mouse pointer as though you’re going to click, but fool it at the last minute by clicking twice in rapid succession.

Click and drag (highlight): Put the tip of the mouse pointer at the place you want to start highlighting, and then press and hold the left mouse button. While holding down the mouse button, drag the pointer across whatever you want to highlight. When you reach the end of what you’re highlighting, release the mouse button.

Right-click: Right-clicking works just like clicking, except you’re exercising the right instead of the left mouse button.

What You Don’t Have to Read

Now that we’ve told you that you should read the book, we’re telling you that you don’t have to read all of it. Confused? Don’t be. This section of the introduction exists to put your mind at ease, so you won’t worry that you have to digest every syllable of this book in order to make sense of Access. And more than just being a required section of the introduction, the heading is true. You don’t have to read the whole book.

You should read the chapters that pertain to things you don’t know, but you can skip the stuff you do know or that you’re fairly sure you don’t need to know. If the situation changes and you eventually do need to know something, you can go back and read that part later.

If you only use Access at work, and you’re using an Access database that some über-geek in your IT department created, chances are you can’t tinker with it. Therefore, if you only need to know about using an existing Access database (or unless you have designs on that IT geek’s job), you can skip the chapters on designing databases.

Of course, it might be nice to know what’s happening “behind the scenes,” but you don’t have to read those chapters if you don’t want to.

Foolish Assumptions

You need to know only a few things about your computer and Windows to get the most out of Access 2010 For Dummies. In the following pages, we presume that you . . .

Know the basics of Windows — how to open programs, save your files, create folders, find your files once you’ve saved them, print, and do basic stuff like that.

Have some goals that Access will help you reach. You either

• want to build your own databases

and/or

• want to work with databases that other people have created.

Want to use and create queries, reports, and an occasional form.

Have either Windows Vista or Windows 7.

technicalstuff.eps If your computer uses Windows 98, 2000, or XP, you can’t run Office 2010.

You don’t have to know (or even care) about table design, field types, relational databases, or any of that other database stuff to make Access work for you. Everything you need to know is right here, just waiting for you to read it. Of course, you may want to know what’s going on under the hood (so to speak). But if you do, you’ll find that information in this book’s pages.

How This Book Is Organized

Here’s a breakdown of the parts in this book. Each part covers a general aspect of Access. The part’s individual chapters dig into the details.

Part I: Basic Training

In this first part of the book, you’ll find out what Access is, what it isn’t, how it works, and how you open it up and start using it. You’ll find out how to navigate and master the Access workspace — and people who’ve used previous versions of Access find out about all the new features and tools that are part of Access 2010.

Part I also takes you through the process of planning your database — deciding what to store, how to structure your database, and how to use some of Access 2010’s very helpful tools for starting a database with templates and themes — cookie-cutters, to use a fun and accurate metaphor — for a variety of common database designs. Be prepared to pick up some helpful jargon, as you learn a bit about a few specialized terms that you really need to know.

Part II: Getting It All on the Table

Part II takes you a bit deeper, starting out with a chapter on setting up more than one table to store related data — and moving on with chapters on setting up relationships between those tables, customizing the way data is stored in your tables, and ways to control how data is entered into the tables in your database. You’ll also find out about new tools that create new data in your tables — based on existing data — automatically.

Part III: Data Mania and Management

Here you find out all about forms — the customized interfaces you create to make it easier to enter, edit, and look at your database. You’ll also discover cool ways to share your Access data with other programs and how to bring content from Word documents and Excel worksheets into Access to save time, reduce the likelihood of data-entry errors, and build consistency within all the work you do in Microsoft Office.

Speaking of saving time and building consistency, you’ll also learn about the new Application Parts feature, through which you can recycle parts of your existing databases to build new ones. You’ll also find out about using Access tables on the Web, and how to publish your database to the Internet. Look out, world!

Part IV: Ask Your Data, and Ye Shall Receive Answers

In Part IV, you get ready to ask questions such as, “How many customers do we have in Peoria?” and “How long has that guy in Accounting worked here?” Of course, you already know how to form and speak sentences that go up at the end (so people know you’re asking a question), but when you ask a question in Access, the pitch of your voice rarely makes any difference. You’ll need, therefore, to know how to sort, filter, and query your data to get at the information you’re storing in your Access database. You’ll also want to know more about Action Queries — and these, too, can be found in Part IV.

Part V: Plain and Fancy Reporting

Reports are compilations of data from one or more tables in your database. That statement might sound a bit scary, because “compilations” has four syllables and you might not be sure what a table is yet. Have no fear, however, because Access provides some cool automatic tools that let you pick and choose what you want in your report, and then it goes and makes the report for you. How neat is that?

Automatic reports weren’t good enough for you, eh? If your job relies upon reports not only being informative but also attractive and attention-grabbing, Part V will be like opening a birthday present. Well, not really, but you’ll find out about charts, printing labels, and putting everything from your logo to page numbers on your reports.

Part VI: More Power to You

Part VI gives more power in the form of the Access Analyzer, a tool that tunes up your database for better performance. It also gives you more power by showing you how to create a user interface that controls what people see, which tables they can edit, and how they work with your database overall.

Part VII: The Part of Tens

The format of these chapters is designed to give you a lot of information in a simple, digestible fashion so you can absorb it without realizing you’re actually learning something. Sneaky, huh?

Appendix: Getting Help

This isn’t really a whole part, but it’s darn useful. Remember how your mom told you the only foolish question is the one you don’t ask? In this appendix, accessible at www.dummies.com/go/access2010, you find out where to go to ask — namely, the online and built-in help resources that Access offers.

Note: We went to the trouble of typing up a ton of records in a few sample databases that are designed to show you the tricks of the Access trade. You can find all the samples at the aforementioned Web site, www.dummies.com/go/access2010.

Icons Used in This Book

When something in this book is particularly valuable, we go out of our way to make sure that it stands out. We use these cool icons to mark text that (for one reason or another) really needs your attention. Here’s a quick preview of the ones waiting for you in this book and what they mean:

tip.eps Tips are incredibly helpful words of wisdom that promise to save you time, energy, and the embarrassment of being caught swearing out loud while you’re alone. Whenever you see a tip, take a second to check it out.

remember.eps Some things are too important to forget, so the Remember icon points them out. These items are critical steps in a process — points that you don’t want to miss.

technicalstuff.eps Sometimes we give in to the techno-geek lurking inside us and slip some technical babble into the book. The Technical Stuff icon protects you from obscure details by making them easy to avoid. On the other hand, you may find them interesting. (Your inner techno-geek will rejoice.)

warning_bomb.eps The Warning icon says it all: Skipping this information may be hazardous to your data’s health. Pay attention to these icons and follow their instructions to keep your databases happy and intact.

Where to Go from Here

Now nothing’s left to hold you back from the delights and amazing wonders of Access. Hold on tight to this copy of Access 2010 For Dummies and leap into Access.

If you’re brand-new to the program and don’t know which way to turn, start with the general overview in Chapter 1.

If you’re about to design a database, we salute you — and recommend flipping through Chapter 4 for some helpful design and development tips.

Looking for something specific? Try the Table of Contents or the Index.

Now, go ye forth and build a database!

Part I

Basic Training

497470-pp0101.eps

In this part . . .

Don’t worry, even though this part of the book is called “Basic Training”, nobody’s going to shout at you or make you do pushups. We promise. Instead, you’ll find out what Access is, what it does, and how to get started using it.

The three chapters in this part of the book introduce you to what’s new in Access 2010, help you get comfortable with the Access 2010 workspace, and show you how to start building your first database. You also find out about some essential terms and concepts that will help you figure out — and talk about — your database needs at work, with clients, or if you’re trying to bore people to death at a party.

Ready? Then let’s get started!